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/core/KotlinSymbolProvider.kt
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ class KotlinSymbolProvider(private val model: Model, private val settings: Kotli
193
193
} else {
194
194
// only use @default if type is `T`
195
195
shape.getTrait<DefaultTrait>()?.let {
196
-
defaultValue(it.getDefaultValue(targetShape))
196
+
setDefaultValue(it, targetShape)
197
197
}
198
198
}
199
199
}
@@ -219,9 +219,10 @@ class KotlinSymbolProvider(private val model: Model, private val settings: Kotli
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/StructureGenerator.kt
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -249,10 +249,6 @@ class StructureGenerator(
249
249
memberSymbol
250
250
}
251
251
252
-
if (builderMemberSymbol.shape isBlobShape&& builderMemberSymbol.isNotNullable) {
0 commit comments