Skip to content

Commit

Permalink
Forbid list/map as paylods (#1897)
Browse files Browse the repository at this point in the history
* Forbid list/map as paylods

...and add tracking to the issue in unions in paylods

Signed-off-by: Daniele Ahmed <[email protected]>
  • Loading branch information
82marbag authored Oct 25, 2022
1 parent 3e24477 commit 15c80de
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ class HttpBoundProtocolPayloadGenerator(
""",
)
is StructureShape -> rust("#T()", serializerGenerator.unsetStructure(targetShape))
is UnionShape -> throw CodegenException("Currently unsupported. Tracking issue: https://github.com/awslabs/smithy-rs/issues/1896")
else -> throw CodegenException("`httpPayload` on member shapes targeting shapes of type ${targetShape.type} is unsupported")
}
}
}
Expand Down

0 comments on commit 15c80de

Please sign in to comment.