-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Enum value names #1123
Comments
I too have this same issue |
This is currently not supported by the spec, see #348. Tooling can try to use extensions to overcome it. |
@webron thanks for the info, but are there any examples? |
Examples for what? It's not supported. |
@webron I thought you said tooling and extensions can help. |
I said people can try using them, I don't know if that would work. I do not have examples for it. |
I don't think that #348 matches exactly the question. Please reconsider your answer and take the first step. Otherwise Swashbuckle, NSwag and others will never be able to generate decent C# / Typescript / ... enums. We developers are quite desperate. |
I have the following enum:
However, when a class includes this as a property it is shown as
type (integer, optional) = ['1', '2', '3', '4', '5', '6']integerEnum:1, 2, 3, 4, 5, 6
,, and when exported using NSwag as a Typescript enum it has the following definition:How can i get it so that the enum is exported as:
Thanks
The text was updated successfully, but these errors were encountered: