# generated by datamodel-codegen:
#   filename:  pydantic_v2_model_default_nullable_dict_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(
        {}, title='Dict With Defaults', validate_default=True
    )
