-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enums generations issue #113
Comments
@Achraf-cyber You might need to specify your enums on supadart.yaml config file, i recommend trying to generate the The reason #108 tldr: there was an issue about enum array type generation Im gonna keep this issue open and reimplement the functionality of generating the enums if the schema doesn't use I recommend specifying them in the yaml file for future proofing |
How do I specify the enums in the supadart.yaml file ? |
ahh year sry, you can do it like this. it's case sensitve. # Do you have enums in your database? map them here
enums:
# mood: [happy, sad, neutral, excited, angry]
# usergroup: [USERS, ADMIN, MODERATOR] i recommend also to lowercase the enum values to follow dart conventios |
Hey ! Thank you for this update ! |
Will do!, thanks |
I did a lot of thinking and just decided to not implement this, i think it's better to just be explicit about the enums, it's safer that way when it comes to generation and future proofing and it's not like we always add/change database enum for it to become cumbersome. instead i just improve the documentation for it.
|
Closing this if no further queries |
Since the last update, enums aren't generated at all. But other generated classes still depend on them.
The text was updated successfully, but these errors were encountered: