# generated by datamodel-codegen:
#   filename:  pydantic_v2_model_default_dict_non_empty.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from pydantic import BaseModel, Field


class ItemModel(BaseModel):
    name: str = Field(..., title='Name')
    description: str = Field(..., title='Description')


class ParentModel(BaseModel):
    dict_with_defaults: dict[str, ItemModel] | None = Field(
        {'jedi': {'description': 'The wise old jedi', 'name': 'Yoda'}},
        title='Dict With Defaults',
        validate_default=True,
    )
