We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm submitting a ...
I confirm that I
"ServerTier":{ "enum":[ 0, 1 ], "type":"number" },
export enum ServerTier { DEFAULT, PREMIUM }
Version of the library: Version of NodeJS:
Hi, currently i try to use this enum and i build my api with swagger-typescript-api and i get this as output:
export enum ServerTier { Value0 = 0, Value1 = 1 }
And now when i compare/work with the enum/api i get this: Type 'ServerTier.PREMIUM' is not assignable to type 'ServerTier'.ts(2322)
Type 'ServerTier.PREMIUM' is not assignable to type 'ServerTier'.ts(2322)
Maybe their is away to declare the enum names into the open api spec
Maybe this issue doesnt belongs to tsoa but i tough because of the swagger.json generation. Remind me if im wrong, apologies in advance...
swagger.json
The text was updated successfully, but these errors were encountered:
Hello there fiftyy 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Sorry, something went wrong.
Fixed by changing https://tsoa-community.github.io/reference/interfaces/_tsoa_runtime.SpecConfig.html#xEnumVarnames to true
true
No branches or pull requests
Sorting
I'm submitting a ...
I confirm that I
Current Behavior
Context (Environment)
Version of the library:
Version of NodeJS:
Detailed Description
Hi, currently i try to use this enum and i build my api with swagger-typescript-api
and i get this as output:
And now when i compare/work with the enum/api i get this:
Type 'ServerTier.PREMIUM' is not assignable to type 'ServerTier'.ts(2322)
Maybe their is away to declare the enum names into the open api spec
Maybe this issue doesnt belongs to tsoa but i tough because of the
swagger.json
generation.Remind me if im wrong, apologies in advance...
Breaking change?
The text was updated successfully, but these errors were encountered: