socialpaymentsbv / query_builder

2 stars 2 forks source link

Allow extra validations on the already casted filters #1

Closed dimitarvp closed 5 years ago

dimitarvp commented 5 years ago

This is not about pre-validation, this is post-validation and post-casting, meaning that the filters already exist as an atom-keyed map.

This is just to do additional validation of the sort "age must never go above 100" or "inserted_at cannot go more than 3 months in the past" -- basically small extra checks to enforce business logic.