title: FastAPI - ENUM type models not populated
body: <p>Below is my fastAPI code</p>
  <pre><code>from typing import Optional, Set
  
  from fastapi import FastAPI
  from pydantic import BaseModel, HttpUrl, Field
  from enum import Enum
  
  app = FastAPI()
  
  
  class Status(Enum):
      RECEIVED = 'RECEIVED'
      CREATED = 'CREATED'
      CREATE_ERROR = 'CREATE_ERROR'
  
  
  class Item(BaseModel):
      name: str
      description: Optional[str] = None
      price: float
      tax: Optional[float] = None
      tags: Set[str] = []
      status: Status = None
  
  
  @app.put(&quot;/items/{item_id}&quot;)
  async def update_item(item_id: int, item: Item):
      results = {&quot;item_id&quot;: item_id, &quot;item&quot;: item}
      return results
  </code></pre>
  <p>Below is the swagger doc generated. The Status is not shown. I am new to pydantic and i am not sure on how to show status in the docs</p>
  <p><a href="https://i.stack.imgur.com/vOI2n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vOI2n.png" alt="enter image description here" /></a></p>