disneystreaming / smithy-translate

Other
55 stars 12 forks source link

handle empty response component #241

Closed lewisjkl closed 6 months ago

lewisjkl commented 6 months ago

Fixes issue where 204 NoContent reusable responses were not being handled correctly.

I'm not sure if there is a more robust way to solve this issue since in most cases we can't accurately know whether a response with no params is meant to be represented as an empty JSON object or as a Unit (no content). In the case of a 204 we can make the assumption though that the output is Unit.

Closes #240.