Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
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.
Why are they important?
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
How did you test these changes?
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.
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.