Closed salu133445 closed 3 years ago
I think documentation is fine here. People can actually add any random keyword argument to the validator...we only pick up the valid ones and use them. If there's a bigger effort to validate all the constraints in a validator in the future, we can add this as one of the work items. Thanks!
Closing due to lack of comments.
Hi,
I found that the
null()
validator can be confusing withnone=False
. Here is an example.One possible way is to state it clear in the documentation that
none=False
will simply be ignored for anull()
validator. The other way is to raise an error during constructing the validator ifnone=False
is set for anull
validator.Thanks.