You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library is very flexible in the usage, so that you can in most places also give some custom value, in case things change since they were enumerated.
But at some places enums are used which can hardly be used with a custom value.
For example the Permission enum has no entry for generating attestations value and there is no convenient way to use it.
Expected
Enum-like values not being enums, but be extensible.
Actual
Enums are not extensible.
Library version
v2.3.0
The text was updated successfully, but these errors were encountered:
Yeah, we should probably have sealed classes with all enum-like values as objects, and a Custom(val value: String) class, like we do for action wrappers. WDYT?
Yes, something like that is what I had in mind.
Just was in a rush and did not have the time to pull out an example, being confident you know what I mean. :-)
Action
The library is very flexible in the usage, so that you can in most places also give some custom value, in case things change since they were enumerated.
But at some places enums are used which can hardly be used with a custom value.
For example the
Permission
enum has no entry for generatingattestations
value and there is no convenient way to use it.Expected
Enum-like values not being enums, but be extensible.
Actual
Enums are not extensible.
Library version
v2.3.0
The text was updated successfully, but these errors were encountered: