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
Copy file name to clipboardExpand all lines: smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/integration/serde/member/MemberShapeEncodeGenerator.kt
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,12 @@ abstract class MemberShapeEncodeGenerator(
104
104
val listKey = nodeInfoUtils.nodeInfo(member)
105
105
val isFlattened = member.hasTrait<XmlFlattenedTrait>() || ctx.service.awsProtocol ==AWSProtocol.EC2_QUERY
106
106
val memberNodeInfo = nodeInfoUtils.nodeInfo(listShape.member)
107
+
// AWS Query protocol keeps a list member in the request even if it is empty, e.g., List=&Version=2020-01-08
108
+
// EC2 Query protocol leaves out a list member from the request if it is empty, e.g., Version=2020-01-08
109
+
if (ctx.service.awsProtocol ==AWSProtocol.EC2_QUERY) {
0 commit comments