Skip to content

Commit 8fdbceb

Browse files
authored
fix: Update example to use pascal case for union variants. (#130)
1 parent 1476668 commit 8fdbceb

File tree

1 file changed

+1
-1
lines changed
  • examples/dynamodb-movies/src/main/kotlin/aws/sdk/kotlin/example

1 file changed

+1
-1
lines changed

examples/dynamodb-movies/src/main/kotlin/aws/sdk/kotlin/example/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fun getResourceAsText(path: String): String =
135135

136136
// map json to attribute values
137137
fun jsonElementToAttributeValue(element: JsonElement): AttributeValue = when {
138-
element.isJsonNull -> AttributeValue.NULL(true)
138+
element.isJsonNull -> AttributeValue.Null(true)
139139
element.isJsonPrimitive -> {
140140
val primitive = element.asJsonPrimitive
141141
when {

0 commit comments

Comments
 (0)