Skip to content

Commit f532bd3

Browse files
committed
Correctly serialize subset of shape's members when configured
1 parent e9d16a9 commit f532bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/core/QueryHttpBindingProtocolGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ abstract class AbstractQueryFormUrlSerializerGenerator(
145145
return shape.documentSerializer(ctx.settings, symbol, members) { writer ->
146146
writer.openBlock("internal fun #identifier.name:L(serializer: #T, input: #T) {", RuntimeTypes.Serde.Serializer, symbol)
147147
.call {
148-
renderSerializerBody(ctx, shape, shape.members().toList(), writer)
148+
renderSerializerBody(ctx, shape, members.toList(), writer)
149149
}
150150
.closeBlock("}")
151151
}

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/CborSerializerGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class CborSerializerGenerator(
108108
val symbol = ctx.symbolProvider.toSymbol(shape)
109109
return shape.documentSerializer(ctx.settings, symbol, members) { writer ->
110110
writer.withBlock("internal fun #identifier.name:L(serializer: #T, input: #T) {", "}", RuntimeTypes.Serde.Serializer, symbol) {
111-
call { renderSerializerBody(ctx, shape, shape.members().toList(), writer) }
111+
call { renderSerializerBody(ctx, shape, members.toList(), writer) }
112112
}
113113
}
114114
}

0 commit comments

Comments
 (0)