backbone.validation icon indicating copy to clipboard operation
backbone.validation copied to clipboard

A validation plugin for Backbone.js that validates both your model as well as form input

Results 82 backbone.validation issues
Sort by recently updated
recently updated
newest added

Here is explained how to override messages: https://github.com/thedersen/backbone.validation#overriding-the-default-error-messages ``` _.extend Backbone.Validation.messages, // coffescript required: '{0} is required' rangeLength: '{0} must be between {1} and {2} characters' ``` how can specify...

I can press return several times in a textarea, which counts as characters but when I call the preValidate function on the model, it does not account for those returns.

If we don't attach validation mixin through view and mixing it directly to model, we don't have access to valid/invalid callbacks. So we can use only "validated:*" events. And so...

Model proceed to save while form is not valid. What is wrong? ``` _.extend(Backbone.Model.prototype, Backbone.Validation.mixin); M=Backbone.Model.extend({ validation:{ name:{ required:true } }, url:'foo' }) m=new M(); m.validate(); //return correct validation error....

bug

Current version of this library (0.9.1) uses _.intersection for comparison changed and invalidated attributes. But if no attribute defined in model, we have passing validation for this attribute despite of...

...rameter This current library validates complex objects just fine (issue #224), however, the errors object is not being populated with the errors from the complex objects that are also being...

notEqualTo validator in case two attributes shouldn’t be the equal

Adds `stopAfterFirstError` argument to the defaultoptions which is `false` by default, so everything should work exactly the same as it always has by default. If this option is set to...

Found this small typo err. Thanks for the awesome library! :)

As README says in https://github.com/thedersen/backbone.validation#do-you-support-conditional-validation Conditional validation is allowed, but in preValidate method, it cannnot work. So I make patch for it.