-
Notifications
You must be signed in to change notification settings - Fork 78
docs: Added docs for enhanced enum usage #396
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds comprehensive documentation for enhanced enum functionality in Serverpod, which allows enums to have custom properties attached to each value. The documentation covers how to define enhanced enums, supported property types, default property values, and documentation syntax for properties and values.
Changes:
- Added new section "Enhanced enums with properties" with examples showing how to define and use enhanced enums
- Documented supported property types (int, double, bool, String and their nullable variants)
- Added examples of default property values for enum properties
- Updated the Keywords table to include the new
propertieskeyword for enums
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
marcelomendoncasoares
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look great, @FXschwartz! I added just one comment in addition to Copilot suggestions.
|
@marcelomendoncasoares Changes made! Ready for another review. |
Cover usage over PR - serverpod/serverpod#4300
@marcelomendoncasoares Docs submitted for the enhanced enum usage! Let me know what kind of changes you'd like made.