# generated by datamodel-codegen:
#   filename:  invalid_dotted_external_relative_ref.yaml

from __future__ import annotations

from enum import Enum

from pydantic import BaseModel, ConfigDict, Field, RootModel


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


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


class Child(BaseModel):
    value: str | None = None


class Parent(BaseModel):
    child: Child | None = None


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