Add type to define OAS responses

This commit is contained in:
Vincent Maillol
2020-10-30 15:24:48 +01:00
parent 77954cdd69
commit 62d871fb5c
16 changed files with 342 additions and 71 deletions

View File

@@ -6,6 +6,10 @@ class Pet(BaseModel):
name: str
class Error(BaseModel):
error: str
class Model:
"""
To keep simple this demo, we use a simple dict as database to