inbo / whip

✅ Human and machine-readable syntax to express specifications for data
MIT License
7 stars 0 forks source link

Support "forbidden" as a test #25

Open peterdesmet opened 5 years ago

peterdesmet commented 5 years ago

Sometimes you want to check that certain values are not in a field, i.e. the opposite of allowed. Cerberus has the rule forbidden for this: http://docs.python-cerberus.org/en/stable/validation-rules.html#forbidden

It would be nice if this could be implemented in whip too.