You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation and Context
Upgrades Smithy to 1.49.0
## Description
As part of the upgrade, it updates the serializer for EC2 query protocol
to handle empty lists in response to
[this](smithy-lang/smithy#2269) (otherwise [a
protocol
test](https://github.com/smithy-lang/smithy-rs/blob/main/codegen-client-test/build.gradle.kts#L75)
`ec2_empty_query_lists_request` would fail).
## Testing
Existing tests in CI
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
Copy file name to clipboardexpand all lines: codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/Ec2QuerySerializerGenerator.kt
Copy file name to clipboardexpand all lines: codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/QuerySerializerGenerator.kt
+30-20
Original file line number
Diff line number
Diff line change
@@ -282,30 +282,40 @@ abstract class QuerySerializerGenerator(private val codegenContext: CodegenConte
282
282
}
283
283
}
284
284
285
-
privatefun RustWriter.serializeCollection(
285
+
protectedopenfun RustWriter.serializeCollection(
286
286
memberContext:MemberContext,
287
287
context:Context<CollectionShape>,
288
288
) {
289
-
val flat = memberContext.shape.isFlattened()
290
-
val memberOverride =
291
-
when (valoverride= context.shape.member.getTrait<XmlNameTrait>()?.value) {
0 commit comments