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: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpBindingProtocolGenerator.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,12 @@ abstract class HttpBindingProtocolGenerator : ProtocolGenerator {
191
191
"awsRestjson1"->KotlinTypes.String
192
192
else->KotlinTypes.ByteArray
193
193
}
194
+
195
+
val defaultResponse =when (protocolName) {
196
+
"smithyRpcv2cbor"->"ByteArray(0)"
197
+
"awsRestjson1"->"\"\""
198
+
else->"ByteArray(0)"
199
+
}
194
200
writer
195
201
.openBlock("internal class #T {", serializerSymbol)
196
202
.call {
@@ -200,7 +206,7 @@ abstract class HttpBindingProtocolGenerator : ProtocolGenerator {
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/service/KtorStubGenerator.kt
0 commit comments