# generated by datamodel-codegen:
#   filename:  modular.yaml
#   timestamp: 1985-10-26T08:21:00+00:00

from __future__ import annotations

from enum import Enum
from typing import Any, Dict, List, Optional, Union

from pydantic import BaseModel


class CustomSpecies(Enum):
    dog = 'dog'
    cat = 'cat'
    snake = 'snake'


class CustomPet(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None
    species: Optional[CustomSpecies] = None


class CustomUser(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None


class CustomEvent(BaseModel):
    name: Optional[Union[str, float, int, bool, Dict[str, Any], List[str]]] = None
