Skip to content
masterclass Buddy

Pydantic · Type Alias

UUID4

UUID4 is a Pydantic type for validating version 4 UUID values. Use it as a model field annotation when the UUID version must be checked.

Last updated

Syntax

class Model(BaseModel):
    value: UUID4

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • uuid.UUID
  • UUID1
  • UUID3
  • UUID5
  • UUID6
  • UUID7
  • UUID8
  • UuidVersion

Source: Pydantic Types | Pydantic Docs. Checked 2026-11-03.