-
Notifications
You must be signed in to change notification settings - Fork 218
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
Implement OpenAPI support for intEnum #1667
Comments
Related: #1664 |
Thanks for opening this issue! We'd accept a change along these lines if you or your team is open to contributing it. As |
Sorry @kstich I am not familiar with Smithy codebase, also it seems that you meant to put some links in your comments? |
Is this something you're interested in contributing still? This is the OpenApiConfig class that @kstich mentioned. That class would need to be updated with a boolean feature flag that would allow intEnum support to be enabled as opt-in for now. As part of that change, the docs would need to be updated. This guide covers OpenApiConfig: https://github.com/smithy-lang/smithy/blob/main/docs/source-2.0/guides/converting-to-openapi.rst#openapi-configuration-settings |
OpenAPI spec allows integer enums, e.g.
I created an
intEnum
type in my smithy model as following:I thought it would generate related enum in the OpenAPI spec but what I get is:
The text was updated successfully, but these errors were encountered: