issues
search
1602
/
jugglingdb
Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.04k
stars
241
forks
source link
Validations should be revisited
#447
Open
1602
opened
8 years ago
1602
commented
8 years ago
deprecate sync validations
callback with error only (reject promise) instead of collecting errors on instance
think of readable error messages instead of 'Validation error'
fail after first validation error, when saving
support
validateAll
method which will perform all validations and collect errors to replace previous functinality of
instance.errors
after
.isValid()
validateAll
method which will perform all validations and collect errors to replace previous functinality ofinstance.errors
after.isValid()