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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, RootModel


class Pets(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )


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


class Error(BaseModel):
    code: int
    message: str


class Resolved(BaseModel):
    resolved: list[str] | None = None


class PetsModel(RootModel[list[Pet]]):
    root: list[Pet]


class Friends2(RootModel[PetsModel]):
    root: PetsModel


class Friends1(RootModel[PetsModel]):
    root: PetsModel
