-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
We suggest the kwargs-style enum definition:
enum type: {
credit: 0,
debit: 1
}
This is problematic in two ways.
- Passing options like
prefix
/suffix
/scopes
/default
is complicated (needs to be prefixed with an underscore) and is not documented - Results in weird unrelated errors (mentions the very first defined enum instead of the one that has options)
Ok to change this to use positional args for name and values?
enum :type, {
credit: 0,
debit: 1
}
With options:
enum :type, {
credit: 0,
debit: 1
}, suffix: true
Metadata
Metadata
Assignees
Labels
No labels