# generated by datamodel-codegen:
#   filename:  duplicate_enum.json
#   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 Animal(Enum):
    dog = 'dog'
    cat = 'cat'
    snake = 'snake'


class User(BaseModel):
    name: Optional[str] = None
    animal: Optional[Animal] = Animal.dog
    pet: Optional[Animal] = Animal.cat
