ldtk
ldtk copied to clipboard
Default values for enums
The default value input is missing for enums. Why is that exactly?
There was an obscure (probably lazy) reason for that, but I can't remember it 🤔 I'll see what I can do :)
To be done, this would required disambiguation between possible states:
- field is required, and "null" value should be displayed as an error,
- field is optional, but it has a default value if omitted,
- field can really be "null" because it has no default value.
Related #392
#392 is marked as "wontdo" now. Does this issue have a chance?
I'm not sure about the usefulness of #392, thus the "wontdo" tag. But if I happen to add a distinct "optional" flag from the current "nullable" flag, this could change.
This current issue ("default enum value") is, imho, far more useful, thus its current state.
I agree. So if "default enum value" is happening, I'm happy! :D
vote +1
Added in 1.2.0 🥳