freewil / express-form

Form validation and data filtering for Express
MIT License
89 stars 21 forks source link

Push errors with a message and field name #7

Closed pedromcaraujo closed 10 years ago

pedromcaraujo commented 10 years ago

This change will provide more info in errors array. The final array will look like:

[
    {
      "field": "id",
      "message": "id is not an integer"
    },
    {
      "field": "name",
      "message": "name is required"
    }
]
pedromcaraujo commented 10 years ago

This is not right. I'll close this.