From 5c010a60b6150556f02992d8d9b09e3b1aef5050 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 7 Aug 2020 02:31:01 +0200 Subject: [PATCH] chore: added simple API response models --- app/schemas.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/schemas.py b/app/schemas.py index d09c9ef..db57946 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -61,3 +61,12 @@ class User(UserBase): class Config: orm_mode = True + + +class APISimpleSuccessResponse(BaseModel): + success: bool = True + +class APISimpleErrorResponse(BaseModel): + success: bool = False + errors: Optional[List[str]] +