Skip to content

Commit

Permalink
make unionShape deserializer overridable (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Oct 16, 2023
1 parent d557010 commit 82f95ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/swift-weeks-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public final String structureShape(StructureShape shape) {
}

@Override
public final String unionShape(UnionShape shape) {
public String unionShape(UnionShape shape) {
context.getWriter().addImport("expectUnion", "__expectUnion", TypeScriptDependency.AWS_SMITHY_CLIENT);
return getDelegateDeserializer(shape, "__expectUnion(" + dataSource + ")");
}
Expand Down

0 comments on commit 82f95ef

Please sign in to comment.