This project has moved and is read-only. For the latest updates, please go here.

Custom Error Message


Can we define our own error message for JSON validate method?
For example, this error message "String '1490AA00' does not match regex pattern '^(\d{5})[A-Z]{2}(\d{2})$'." does not make much sense to user.
It will be wonderful if we can define a custom error message if this does not match condition arise.
Thank you for your time.


JamesNK wrote Apr 23, 2012 at 5:20 AM

Is this from schema validation?

JsonSpc wrote Apr 24, 2012 at 12:04 AM

Yes, that is from schema validation.

wrote Feb 22, 2013 at 2:48 AM