segmentio / validate-form

Easily validate a form element against a set of rules.
43 stars 6 forks source link

allow warnings #8

Open ianstormtaylor opened 10 years ago

ianstormtaylor commented 10 years ago

instead of just invalids. basically it would still allow submission, just would display the messages still. so that you can be helpful without being annoying if your validation logic is actually wrong

dominicbarnes commented 10 years ago

I was wanting to implement this feature for use in a password-strength indicator. It's not immediately clear where I should start though... would this need to be implemented upstream in segmentio/validator?

ianstormtaylor commented 10 years ago

thats a really good question haha. i honestly am not sure, i'd be open to ideas about how to do it. upstream could make sense if we want to say that its a validator-level decision