Closed charjr closed 1 month ago
@carnage How should we handle this?
If we base it off value
we would be unable to support UnitEnums without a value
.
If we base it off name
we can support all enums in a consistent manner.
We allow both, with two filters: ToEnumFromName
and ToEnumFromValue
which could be used depending on preference.
Membrane handles the
enum
keyword in OpenAPI using validators likeContained
but this is different from handling actual PHP enums.