fields.py 134 B

12345
  1. from typing import Annotated
  2. from pydantic import Field
  3. SlugStr = Annotated[str, Field(pattern=r"^[-a-zA-Z0-9_]+$", max_length=50)]