-
- Downloads
Fix codegen for unions with the `@httpPayload` trait (#2969)
This PR incorporates the new test cases in Smithy from https://github.com/smithy-lang/smithy/pull/1908, and adds support to `@restXml` and `@restJson1` for unions with the `@httpPayload` trait. This resolves https://github.com/awslabs/smithy-rs/issues/1896. This also fixes code generation for the latest `medicalimaging` SDK model. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- CHANGELOG.next.toml 6 additions, 0 deletionsCHANGELOG.next.toml
- codegen-client-test/model/rest-xml-extras.smithy 96 additions, 0 deletionscodegen-client-test/model/rest-xml-extras.smithy
- codegen-core/common-test-models/rest-json-extras.smithy 96 additions, 0 deletionscodegen-core/common-test-models/rest-json-extras.smithy
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/HttpBoundProtocolPayloadGenerator.kt 1 addition, 1 deletion...ore/smithy/protocols/HttpBoundProtocolPayloadGenerator.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/JsonSerializerGenerator.kt 11 additions, 2 deletions...ore/smithy/protocols/serialize/JsonSerializerGenerator.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/QuerySerializerGenerator.kt 4 additions, 0 deletions...re/smithy/protocols/serialize/QuerySerializerGenerator.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/StructuredDataSerializerGenerator.kt 12 additions, 1 deletion.../protocols/serialize/StructuredDataSerializerGenerator.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/XmlBindingTraitSerializerGenerator.kt 12 additions, 3 deletions...protocols/serialize/XmlBindingTraitSerializerGenerator.kt
Loading
Please register or sign in to comment