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
I've created a branch in my fork https://github.com/alfonsoabad/JSV/tree/descriptive-errors with those descriptive messages implemented for draft 3 only, I'll be doing the pull request once it's tested, may be you can help me to test.
Hi
I think it would be a good idea to add the name of the property being validated by the schema 'json-schema-draft-03.js' in the friendly error message.
For now, if a json property such as 'address' for example does not respect the defined maxlength, the following message is :
String is greater than the required maximum length : 2
.It would be more revelant to have a messsage such as :
Property [address] of type [String] is greater than the required maximum length : 150
This message can help us debug application by providing the name of the property which failed the validation.
Best regards
Thierry LAU
The text was updated successfully, but these errors were encountered: