Skip to content

Commit

Permalink
feat: repair type deduction for AttributeValue (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz authored Oct 12, 2023
1 parent 036c467 commit 43ab6c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public TypeConverter generateUnionConverter(final UnionShape unionShape) {
.of("if (value.Is%sSet)".formatted(propertyName));
} else if (listTypes.contains(propertyName)) {
checkIfValuePresent = TokenTree
.of("if (!value.%s.Any())".formatted(propertyName));
.of("if (value.%s.Any())".formatted(propertyName));
} else if ("NULL".equals(propertyName)) {
checkIfValuePresent = TokenTree
.of("if (value.%s == true)".formatted(propertyName));
Expand Down

0 comments on commit 43ab6c4

Please sign in to comment.