-
Notifications
You must be signed in to change notification settings - Fork 41
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
Error: Model -> Schema - Enum do not work #52
Comments
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 |
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
The text was updated successfully, but these errors were encountered: