smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.7k stars 201 forks source link

Add param to empty blob tests #2335

Closed adamthom-amzn closed 1 week ago

adamthom-amzn commented 1 week ago

Background

Content-Type is bound to the contentType member, so if it is expected as a header, it should also be set as a param of the input.

When deserializing a request, header binding is generally independent of payload binding. If the request has a header set, it will be bound to the deserialized structure no matter the length of the payload.

Testing

That's the neat part, I didn't!


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.