Allow opting out of mixin flattening in OpenAPI conversion #2145
Labels
archived
This issue is archived, meaning it may be re-opened in the future given new information or action.
feature-request
A feature should be added or improved.
Currently a Smithy spec always has its mixins flattened and erased when being converted to OpenAPI/JsonSchema. This makes it difficult to represent for example fields that are global to all or a subset of operations and should be generated as a
ResponseBase
class etc. As such I propose to allow opting out of mixin flattening and have them instead generated as anallOf
schema in OpenAPI.Example Smithy:
Currently generates OpenAPI:
What I'd like the output to be:
The text was updated successfully, but these errors were encountered: