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 IDL serializer option to coerce inline IO #2316

Closed kstich closed 3 weeks ago

kstich commented 3 weeks ago

This commit adds a new IDL serializer configuration, coerceInlineIo, that will use inline IO to write input and output shapes that are only bound to one operation - even if they don't have the input or output trait applied.

It also fixes a bug where an empty newline was written before empty inline IO shape definitions.


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