Skip to content

Adding custom ValidatorTypeCodes #426

@andreasevers

Description

@andreasevers

Hi,

We're very happy users of your library and would like to thank you for the brilliant work you've done.

One thing we'd like to do is to add our own custom enum values in the ValidatorTypeCode enum, so that we can override the existing error messages.
I've noticed BaseJsonValidator's parseErrorCode method allows us to specify a custom error code instead of the default one in the Json definition, but it's unclear where we could then add these custom error codes themselves.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions