We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errorMessage
Currently, the following schema definition,
{ "type": "string", "pattern": "^\\d+$" }
is expected to give errors such as:
Does not match pattern '^\d+$'
Clearly, in the given context a more friendlier message can be used.
Implementations such as ajv support this feature through the errorMessage field, i.e.
{ "type": "string", "pattern": "^\\d+$", "errorMessage": "should be a number" }
It will be great to have gojsonschema support that.
gojsonschema
Also really appreciate if there is a better alternative to achieve this in gojsonschema.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, the following schema definition,
is expected to give errors such as:
Clearly, in the given context a more friendlier message can be used.
Implementations such as ajv support this feature through the
errorMessage
field, i.e.It will be great to have
gojsonschema
support that.Also really appreciate if there is a better alternative to achieve this in
gojsonschema
.The text was updated successfully, but these errors were encountered: