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

from __future__ import annotations

from pydantic import AwareDatetime, BaseModel, RootModel


class FoodFoodIdGetResponse(RootModel[list[int]]):
    root: list[int]


class UserGetResponse(BaseModel):
    timestamp: AwareDatetime
    name: str
    age: str | None = None


class UserPostRequest(BaseModel):
    timestamp: AwareDatetime
    name: str
    age: str | None = None


class UsersGetResponseItem(BaseModel):
    timestamp: AwareDatetime
    name: str
    age: str | None = None


class UsersGetResponse(RootModel[list[UsersGetResponseItem]]):
    root: list[UsersGetResponseItem]


class UsersPostRequestItem(BaseModel):
    timestamp: AwareDatetime
    name: str
    age: str | None = None


class UsersPostRequest(RootModel[list[UsersPostRequestItem]]):
    root: list[UsersPostRequestItem]


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


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


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


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