Unverified Commit 15c80de4 authored by 82marbag's avatar 82marbag Committed by GitHub
Browse files

Forbid list/map as paylods (#1897)



* Forbid list/map as paylods

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

Signed-off-by: default avatarDaniele Ahmed <ahmeddan@amazon.de>
parent 3e24477a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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")
                        }
                    }
                }