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

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field, RootModel


class Model(RootModel[Any]):
    root: Any


class Address(BaseModel):
    street: str | None = None
    city: str | None = None
    zip: str | None = None


class Address1(BaseModel):
    street: str | None = None
    building: str | None = None


class Company(BaseModel):
    name: str | None = None
    address: Address1 | None = Field(
        None, description='Inline address - should get suffix'
    )


class Address2(BaseModel):
    street: str | None = None
    apartment: str | None = None


class Customer(BaseModel):
    name: str | None = None
    address: Address2 | None = Field(
        None, description='Another inline address - should get suffix'
    )
