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
We suggest the kwargs-style enum definition:
This is problematic in two ways.
prefix/suffix/scopes/defaultis complicated (needs to be prefixed with an underscore) and is not documentedOk to change this to use positional args for name and values?
With options: