fix choices for different types with fastapi, add choices as enum in schema

This commit is contained in:
collerek
2021-02-03 11:55:47 +01:00
parent a6166edbd1
commit a028e96f3e
4 changed files with 205 additions and 5 deletions

View File

@ -1,4 +1,4 @@
from typing import List, Union, Optional
from typing import List
import databases
import pytest