Creates an enum validator for an enum where all cases are parameterless, or where all subtypes of the sealed hierarchy T are object s. This enumeration will only be used for documentation, as a value outside of the allowed values will not be decoded in the first place (the decoder has no other option than to fail).
Creates an enum validator for an enum where all cases are parameterless, or where all subtypes of the sealed hierarchy T are object s. This enumeration will only be used for documentation, as a value outside of the allowed values will not be decoded in the first place (the decoder has no other option than to fail).