This should bring enum functionality up to all best practices:
If the spec has oneOf with const and title, it will use title automatically to name the enum.
Will handle toString() properly.
Enables Comparable against the value correctly per the documentation on advanced enums.
This should bring enum functionality up to all best practices:
If the spec has oneOf with const and title, it will use title automatically to name the enum. Will handle toString() properly. Enables Comparable against the value correctly per the documentation on advanced enums.