Validating date with javascript

You can use the async validate function even if no validations are async, it still returns a promise.You can not, however, use the regular function with async validations.This differs from example Ruby on Rails where validators instead have the option.I find it quite common that you want to have constraints on an optional attribute.is an open source component of Wrapp and is licensed under the MIT license.

validating date with javascript-7validating date with javascript-62

So for example adding a constraint of at least 6 characters will be like saying If the attribute is given it must be at least 6 characters.The attributes must be a plain object or a form element, things like backbone models etc are not supported.For the format of the constraints see the constraints section.The project can be found on Git Hub where you can also find our issue tracker.There is also a Travis project used for testing, a Coveralls project used to code coverage as well as the annotated source.

Leave a Reply