wrapp-archive / validate.js

Declarative validation written in javascript
http://validatejs.org/
178 stars 18 forks source link

[question] What is your way to order error messages? #14

Closed gaydenko closed 10 years ago

gaydenko commented 10 years ago

For complicated form error messages ordering by attributes given order looks handy (if not say "obligatory"). What is your way to order error messages?

ansman commented 10 years ago

Do you mean attribute order or error message order?

The attributes don't have an order since they are just object keys which are unordered. Same goes for the actual messages within an attribute. They will have the same order as the validators have for that attribute which is implementation specific.