Open Arthuros120 opened 8 months ago
Autoswagger doesn't handle enums yet, but a PR is more then welcome... also when you use @enum(), you MUST NOT use @example() since @enum() uses the first element as example
Thank you very much for your reply. I really need it, so if I have the time I'll look into it.
I need it too
Where do you guys usually store your enums?
They can literally be all over the place.
Right now AutoSwagger parses everything under models/ as a Model, everything under interfaces/ as an IF and the corresponding /controllers/*/.ts of a route.
We could store the enums in the interfaces directly, at worst
we store them under app/enums
Enum management in models generates an error.
Here's my model:
Here's the enum:
Here's the generated diagram:
My swagger.ts configuration:
Open API doesn't understand: "#/components/schemas/EDirType" it returns
unresolved reference
.How can I do this without replacing the enum with a string?
I'm getting an error because I'm using Japa's functionality:
Sincerely sorry for the offuscation of the code, hope this issue remains relevant