# generated by datamodel-codegen:
#   filename:  user.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 User(BaseModel):
    name: str | None = Field(None, examples=['ken'])
    pets: list[User] = Field(default_factory=list)


class Pet(BaseModel):
    name: str | None = Field(None, examples=['dog', 'cat'])


User.model_rebuild()
