title: How can I set max string field length constraint in Pydantic?
body: <p>So, I have pydantic model with a string field:</p>
  <pre><code>class MyPydanticModel(BaseModel):
      name: Optional[str]
  </code></pre>
  <p>And I want to set the max length for this field to 10. How can I do this?</p>