ansman / validate.js

A declarative validation library written javascript
https://validatejs.org
MIT License
2.63k stars 336 forks source link

error codes #98

Closed webeks closed 8 years ago

webeks commented 8 years ago

There should be an option to add error codes next to messages.

ansman commented 8 years ago

This is something you would have to do yourself. Validate.js already exposes which validator that failed (using the detailed format) if you want to do something generic: http://validatejs.org/#validate