Support min_length on Fields of type typing.Sized #2408
Ran4
started this conversation in
Feature Request
Replies: 1 comment
-
As far as I know we don't have any support for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This should work, since
typing.Sized
specifies that we have a__len__
method, and thus we should be able to check the minimum length of the object we're validating.However, right now (as of pydantic 1.7.3), this code will raise:
Beta Was this translation helpful? Give feedback.
All reactions