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
It would be helpful to have a way to override the default error message, either through interceptors or by specifying it within the JSON schema.
For example, consider this object:
"reference": {
"maxLength": 2147483647,
"minLength": 6,
"pattern": "^[A-Za-z0-9 /.-]*$",
"type": "string",
"description": "Reference Data.",
"example": "Az074-124",
"errorMessage": [
{
"pattern": "must be alphanumeric and can contain only the following special characters: /.-"
}
]
}
In this case, instead of displaying the default error message: #/payoutDefaults/compliance/reference: string [@#] does not match pattern ^[A-Za-z0-9 /.-]*$,
we would see the message defined in the errorMessage property: #/payoutDefaults/compliance/reference: must be alphanumeric and can contain only the following special characters: /.-.
It would be greatly appreciated if there’s already a way to override the default error message! 🙏
The text was updated successfully, but these errors were encountered:
Hello, this library is in maintenance mode, hence it is very unlikely to see new features (see the deprecation notice.
The successor library has better support for programmatically consumable validation errors, so you may consider migrating to it, then it will be fairly feasible to generate your own error messages.
It would be helpful to have a way to override the default error message, either through interceptors or by specifying it within the JSON schema.
For example, consider this object:
In this case, instead of displaying the default error message:
#/payoutDefaults/compliance/reference: string [@#] does not match pattern ^[A-Za-z0-9 /.-]*$
,we would see the message defined in the errorMessage property:
#/payoutDefaults/compliance/reference: must be alphanumeric and can contain only the following special characters: /.-
.It would be greatly appreciated if there’s already a way to override the default error message! 🙏
The text was updated successfully, but these errors were encountered: