Open AfroMonkey opened 2 years ago
I'll try to do this via an intermediary class inherited from pydantic.dataclasses.dataclass; if it's successful, I'll share the code
This would also be good for max_length validations. @AfroMonkey were you able to make this work?
It would be great to be able to use the restrictions that pydantic Field offers, eg: min_items, max_items, regex; etc.