Open Suor opened 4 years ago
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.