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

from __future__ import annotations

from pydantic import BaseModel, RootModel


class Id(RootModel[str]):
    root: str


class Pet(BaseModel):
    name: str | None = None
    age: int | None = None


class Parent(BaseModel):
    id: Id | None = None
    name: str | None = None
    pet: Pet | None = None


class Child(BaseModel):
    id: Id | None = None
    parent_id: Id | None = None
    name: str | None = None
    pet: Pet | None = None
