From 30618aaaf858b671544be984f5aa47681777e23e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 9 Jan 2019 16:18:42 -0800 Subject: towards better success/error response types --- fatcat-openapi2.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fatcat-openapi2.yml') diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml index 4babc475..da582ade 100644 --- a/fatcat-openapi2.yml +++ b/fatcat-openapi2.yml @@ -101,16 +101,25 @@ definitions: error_response: type: object required: + - success + - error - message properties: + success: + type: boolean + error: + type: string message: type: string example: "A really confusing, totally unexpected thing happened" success: type: object required: + - success - message properties: + success: + type: boolean message: type: string example: "The computers did the thing successfully!" -- cgit v1.2.3