Add example for enum in FastAPI query parameters
May 4, 2022
class ColDefType(str, Enum):
metrics = 'metrics'
fields = 'fields'
@classmethod
def __modify_schema__(cls, field_schema):
field_schema.update(
example='metrics',
)