smithy-rs/aws/sdk-codegen-test
Russell Cohen 4f3af7a6c6
Support primitive zeroes in restJson and restXml (#451)
* suppress serializing of primitive 0s as struct members

When a struct primitive is a "zero value" it shouldn't be serialized. It's frequently the case that `0` is an invalid input & sending 0 on the wire will actually cause the service to reject the request.

Fixes #439

* support primitive zeros in restJson and restXml

1. Avoid serializing PrimitiveInteger when it is 0, unless it is required
2. Setup the ability to write protocol tests against generated SDKs
3. Fix a trailing `,` in aws-sdk-codegen-test
4. Keep trying to get the gradle build to invalidate caches properly.

* Add awsQuery support

* Cleanups

* Fix bad merge

* Fix clippy error
2021-06-02 15:48:03 -04:00
..
.gitignore Add ApiGateway accept header customization (#287) 2021-04-01 17:16:13 +00:00
README.md Add ApiGateway accept header customization (#287) 2021-04-01 17:16:13 +00:00
build.gradle.kts Support primitive zeroes in restJson and restXml (#451) 2021-06-02 15:48:03 -04:00

README.md

Codegen Integration Test

This module defines an integration test of the code generation machinery for AWS services. .build.gradle.kts will generate a smithy-build.json file as part of the build. The Smithy build plugin then invokes our codegen machinery and generates Rust crates.

This module exists to code generate and execute service specific protocol tests like ApiGateway.

Usage

# From repo root:
./gradlew :aws:sdk-codegen-test:test