enable orm mode for response schema

This commit is contained in:
grillazz
2021-04-05 19:22:29 +02:00
parent 6a83b80340
commit 4227e716a5
2 changed files with 4 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ class StuffResponse(BaseModel):
)
class Config:
orm_mode = True
schema_extra = {
"example": {
"config_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",