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

from __future__ import annotations

from enum import Enum
from typing import Optional

from pydantic import BaseModel


class PetType(Enum):
    pet = 'pet'


class PetDetails(BaseModel):
    race: Optional[str] = None


class Pet(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None
    type: PetType
    details: Optional[PetDetails] = None


class CarType(Enum):
    car = 'car'


class CarDetails(BaseModel):
    brand: Optional[str] = None


class Car(BaseModel):
    id: int
    name: str
    tag: Optional[str] = None
    type: CarType
    details: Optional[CarDetails] = None
