- middle version:
0.2.2
- Python version:
3.7.3
- Operating System:
Alpine Linux v3.9
Description
Set a length requirement for a str
What I Did
class Foo(middle.Model):
bar: str = middle.field(min_length=4, max_length=4)
ValueError: The 'min_length' keyword value must not be equal or greater than the 'max_length' keyword value.
This seems like it should be possible. Or, perhaps:
bar: str = middle.field(length=4)
0.2.23.7.3Alpine Linux v3.9Description
Set a length requirement for a
strWhat I Did
This seems like it should be possible. Or, perhaps: