Some times the current decorator just does not cut it. It basically allows you to specify a statement that will be attached in the docs, and where errors will be on formatted as {statement} is False on input {the input}. This is not always not the most descriptive format and occasionally we would like to be able to return more detailed error messages depending on the situation.
I would like to expose and make part of the documentation the
decorator that attaches a description to the validator and
the boolean result.
Then the current decorator can be a thin wrapper on top of the two, but still it can allow the consumer more control when necessary.
Some times the current decorator just does not cut it. It basically allows you to specify a statement that will be attached in the docs, and where errors will be on formatted as
{statement} is False on input {the input}
. This is not always not the most descriptive format and occasionally we would like to be able to return more detailed error messages depending on the situation.I would like to expose and make part of the documentation the
Then the current decorator can be a thin wrapper on top of the two, but still it can allow the consumer more control when necessary.