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

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel, ConfigDict, RootModel


class Animal(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    kind: Kind | None = None
    """
    The kind of the animal
    """


class Animals(RootModel[Animal]):
    root: Animal


class Kind(Enum):
    CAT = 'CAT'
    DOG = 'DOG'


class Pet(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    kind: Kind | None = None
    """
    The kind of the pet
    """


class Pets(RootModel[Pet]):
    root: Pet
