Currently, validator supports oneof to assert that a string/int is within one of the allowed values: oneof=red green
Can we add a validator noneof to do the inverse of this? It would verify that the string does not match any the given restricted values: noneof=red green
noneofci would be the case-insensitive equivalent of this
I can help raise a PR for this if you're fine with me adding a validator for it
Currently, validator supports
oneofto assert that a string/int is within one of the allowed values:oneof=red greenCan we add a validator
noneofto do the inverse of this? It would verify that the string does not match any the given restricted values:noneof=red greennoneofciwould be the case-insensitive equivalent of thisI can help raise a PR for this if you're fine with me adding a validator for it