ansman/validate.js

Errors as string instead of Array

Closed this issue · 1 comments

Is there anyway to get errors as stings instead of as an array?

So instead of:

email: [
'Error one',
'Error two'
]

I want:

email: 'Error one'

No, you can do this yourself easily by mapping it to the first value or you can use another output format: http://validatejs.org/#validate-error-formatting