So, I have pydantic model with a string field:
class MyPydanticModel(BaseModel): name: Optional[str]And I want to set the max length for this field to 10. How can I do this?
So, I have pydantic model with a string field:
class MyPydanticModel(BaseModel): name: Optional[str]And I want to set the max length for this field to 10. How can I do this?