-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline {map,list}_statements in conversion to OpenAPI #2443
Comments
What are you getting currently for the converted shape and what output do you want instead? |
I would like to be able to directly inline the shape upon conversion (similar to what it would look like upon conversion to Java e.g.), like so:
Instead, it retains its Smithy symbol and turns into its own schema:
This is problematic because this "AdditionalConfigMap" construct is something that other codegen tools pick up, adding redundant structure to artifacts in our build process. This currently hinders our attempts to migrate one of our APIs from OpenAPI to Smithy. |
Hi everyone, is this something that can be accomplished relatively easily?
I understand that lists and maps need to be defined verbosely and that there aren't any inline structures of this kind;
but this is very suboptimal when schemas such as "AdditionalConfigMap" are created in generation, where this is just supposed to be a
Map<String, String>
.This also makes it hard to combine with other codegen tools such as
datamodel-codegen
.I would ideally like to be able to replace them with simple "object" or "array" OAS types.
The text was updated successfully, but these errors were encountered: