Skip to content
masterclass Buddy

Pydantic · Type Alias

Tag

An alias gives a Pydantic field another name for input and output data. Use it when external data names differ from Python attribute names.

Last updated

Syntax

Field(alias='external_name')

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

Subscribe
  • Field
  • Serialization
  • Configuration
  • model_dump

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