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-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/eventstream/EventStreamParserGenerator.kt
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ class EventStreamParserGenerator(
147
147
val target = ctx.model.expectShape(hdrBinding.target)
148
148
val targetSymbol = ctx.symbolProvider.toSymbol(target)
Copy file name to clipboardExpand all lines: codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/eventstream/EventStreamSerializerGenerator.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -183,9 +183,15 @@ class EventStreamSerializerGenerator(
183
183
ShapeType.BLOB->"ByteArray"
184
184
ShapeType.STRING->"String"
185
185
ShapeType.TIMESTAMP->"Timestamp"
186
+
ShapeType.ENUM->"String"
187
+
ShapeType.INT_ENUM->"Int32"
186
188
else->throwCodegenException("unsupported shape type `${target.type}` for eventHeader member `$member`; target: $target")
187
189
}
188
-
val conversion =if (target.type ==ShapeType.BYTE) ".toUByte()"else""
0 commit comments