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

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field, RootModel, conint


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


class Person(BaseModel):
    firstName: str | None = Field(None, description="The person's first name.")
    lastName: str | None = Field(None, description="The person's last name.")
    age: conint(ge=0) | None = Field(
        None, description='Age in years which must be equal to or greater than zero.'
    )
    friends: list[Any] | None = None
    comment: None = Field(None)


class OriginalPerson(RootModel[Person]):
    root: Person


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