Closed miszczu-drako closed 2 months ago
Hello there miszczu-drako 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Hey guys, why there's no response? Is my issue missing some required fields? Do I need to do some additional action from my side?
I have just opened a PR https://github.com/lukeautry/tsoa/pull/1609 with a fix
Both union type and enum in typescript are generated to enum in swagger, which is fine and expected. However if I specify an
@example
in jsdoc for union type, it will be visible in generated swagger file. But it won't be for enum.Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
I expect that
@example
is taken into account both for union type and enumSource ts file
Expected yaml file
Current Behavior
Currenlty EnumType is generated without an example
Possible Solution
Steps to Reproduce
@example
in jsdoc to any enum you have in your codetsoa spec
Context (Environment)
Version of the library: 5.1.1 Version of NodeJS: v20.9.0
Detailed Description
Nothing to add.
Breaking change?
No