
I'm using FastAPI and in my schemas (that is, serializers) I have something like this:
from pydantic import StrictStr, BaseModel
class Str255(StrictStr):
max_length = 255
# my schemas:
class CatSchema(BaseModel):
name: Str255
owner: Str255
age: int
The reason I use Str255 is to a...