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/serde/DeserializeStructGenerator.kt
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,11 @@ open class DeserializeStructGenerator(
40
40
/**
41
41
* Enables overriding the codegen output of the final value resulting
42
42
* from the deserialization of a non-primitive type.
43
-
* @param memberShape [MemberShape] associated with entry
43
+
* @param forMemberShape [MemberShape] associated with entry, if any
44
44
* @param defaultCollectionName the default value produced by this class.
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/DeserializeUnionGenerator.kt
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -87,8 +87,13 @@ class DeserializeUnionGenerator(
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/DeserializeUnionGeneratorTest.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -187,11 +187,11 @@ class DeserializeUnionGeneratorTest {
187
187
val v2 = if (nextHasValue()) { deserializeBarUnionDocument(deserializer) } else { deserializeNull(); continue }
188
188
map2[k2] = v2
189
189
}
190
-
FooUnion.StrMapVal(map2)
190
+
map2
191
191
}
192
192
col1.add(el1)
193
193
}
194
-
FooUnion.StrMapVal(col1)
194
+
col1
195
195
}
196
196
} else { deserializeNull(); continue }
197
197
@@ -269,7 +269,7 @@ class DeserializeUnionGeneratorTest {
269
269
val el1 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
270
270
col1.add(el1)
271
271
}
272
-
MyAggregateUnion.ListOfIntList(col1)
272
+
col1
273
273
}
274
274
col0.add(el0)
275
275
}
@@ -288,7 +288,7 @@ class DeserializeUnionGeneratorTest {
288
288
val el1 = if (nextHasValue()) { deserializeInt() } else { deserializeNull(); continue }
0 commit comments