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
If the minimum keyword failed then the message is Too young, if the maximum keyword failed the message will be Too old. If other keyword failed (for example type) the default error message will be used. You can provide a custom fallback
if you are not interested in all properties.
If the minimum keyword failed then the message is Too young otherwise the message is Invalid number.
These are basic examples on how to use the $error keyword. Also keep in mind that this is something specific to opis/json-schema, it is an attempt at providing user defined error messages embedding them in json-schemas.
Ok thank you, I have a case with some anyOf and some const for a dropdown select and it yields at me for every line of the anyOf, but I will do some testing with what you just said :)
Hi, I see that we can specify a $error in a schema, but I can't find any documentation about it and how to use it.
Am I missing something?
The text was updated successfully, but these errors were encountered: