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

Simplify `@httpPayload` on string shape protocol tests #2331

Closed david-perez closed 2 weeks ago

david-perez commented 2 weeks ago

In #2314, I added an operation featuring an @httpPayload-bound shape to test Content-Type header checking, among other things. However, I failed to notice there is already a http-string-payload.smithy file in the test suite to test @httpPayload-bound string shapes.

This PR merges and applies the tests I added in #2314 to the operation that already existed.

Testing

Ran tests in smithy-rs.


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