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

from __future__ import annotations

from pydantic import BaseModel, Field


class User(BaseModel):
    user_name: str | None = Field(None, alias='name')
    id: int | None = None


class Address(BaseModel):
    address_name: str | None = Field(None, alias='name')
    city: str | None = None


class Root(BaseModel):
    root_name: str | None = Field(None, alias='name')
    user: User | None = Field(None, title='User')
    address: Address | None = Field(None, title='Address')
