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

from __future__ import annotations

from enum import Enum
from typing import Literal

from pydantic import BaseModel, Field


class Priority(Enum):
    high = 'high'
    medium = 'medium'
    low = 'low'


class Category(Enum):
    a = 'a'
    b = 'b'
    c = 'c'


class EnumFieldAsLiteralMap(BaseModel):
    status: Literal['active', 'inactive', 'pending'] | None = Field(
        None, title='Status'
    )
    priority: Priority | None = Field(None, title='Priority')
    category: Category | None = Field(None, title='Category')
