SixiS / jquery_query_builder-rails

The jQuery Query Builder Rule Evaluator and JavaScript library + Dependencies ready for the Rails Asset Pipeline
MIT License
30 stars 17 forks source link

Retrieve specific validation failures #5

Open kcollignon opened 6 years ago

kcollignon commented 6 years ago

Hi @SixiS

I was wondering if there is a way to get access to which conditions failed validation vs. only receiving a simple TRUE or FALSE if the passed object matched the conditions?

For example, I'd like to present which validation conditions failed validation back to the end user

Thanks!

SixiS commented 6 years ago

Hi kcollignon

Thats a great idea - I don't think it is too difficult to implement. I'll look at adding it soon as I get a chance, possibly this weekend.

Thanks for the issue!

kcollignon commented 6 years ago

@SixiS thanks! can't wait to see what you come up with. Much appreciated.