scotthovestadt / schema-object

Enforce schema on JavaScript objects, including type, transformation, and validation. Supports extends, sub-schemas, and arrays.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom error message

caio-ribeiro-pereira opened this issue · comments

commented

Hi, is there a way to customize each error message? Because it will be very useful for me to set translated error messages for my project.

This is a good point. I'll add error codes to each error so that it will be possible to look for a specific error code and translate it if necessary.

commented

Thanks!
On Nov 19, 2014 5:13 PM, "scotthovestadt" notifications@github.com wrote:

This is a good point. I'll add error codes to each error so that it will
be possible to look for a specific error code and translate it if necessary.


Reply to this email directly or view it on GitHub
#14 (comment)
.