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 bodyMediaType to malformed request tests #2309

Closed kstich closed 3 weeks ago

kstich commented 3 weeks ago

This commit adds the bodyMediaType field to request definitions in httpMalformedRequestsTests. Specifying the body media type allows tests to specify protocols that use binary-based serialization formats, like Smithy RPCv2 CBOR, as their bodies must be base64-encoded in models.

Resolves #1932


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