You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromvoluptuousimportAny, Schemaschema=Schema(Any(str, None))
schema(10)
# MultipleInvalid: not a valid value
I would expect something like "expected str or none". I know I can pass msg to Any, but it would be nice to have better default for such a common case.
The text was updated successfully, but these errors were encountered:
This error message however would quickly get quite long if there are more than only those two validators in the Any() clause, plus it would need some logic to generate proper language in a generic way, e.g. if there are then further validators such as Range, Contains or NotIn.
Now it's:
I would expect something like "expected str or none". I know I can pass
msg
toAny
, but it would be nice to have better default for such a common case.The text was updated successfully, but these errors were encountered: