Skip to content
masterclass Buddy

Pydantic · Decorator

with_config

Pydantic configuration controls model behavior. Child models inherit and merge parent settings, while nested Pydantic models keep separate configuration boundaries.

Last updated

Syntax

class Model(BaseModel):
    model_config = ConfigDict(...)

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

Subscribe
  • ConfigDict
  • model_config
  • __pydantic_config__
  • with_config
  • validate_call
  • plugin_settings

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