You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/06/06 10:38:57 UTC
[incubator-ponymail-foal] branch master updated: Update expected
response, tweak error response schema (not sure if we need it??)
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 02191bf Update expected response, tweak error response schema (not sure if we need it??)
02191bf is described below
commit 02191bf380b4e201a47426712afa3b22903c18aa
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Jun 6 12:38:51 2021 +0200
Update expected response, tweak error response schema (not sure if we need it??)
---
server/openapi.yaml | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/server/openapi.yaml b/server/openapi.yaml
index a3b4018..0374d5a 100644
--- a/server/openapi.yaml
+++ b/server/openapi.yaml
@@ -302,9 +302,13 @@ components:
nest: 1
ErrorResponse:
properties:
- error:
+ okay:
+ description: Whether the action completed (will be false)
+ example: false
+ type: boolean
+ message:
description: Response text in human readable format
- example: You do not have access to perform this action!
+ example: The requested action could not be completed...
type: string
required:
- error
@@ -524,12 +528,10 @@ paths:
schema:
$ref: '#/components/schemas/StatsResponse'
description: 200 Response
- default:
+ '500':
content:
- application/json:
- schema:
- $ref: '#/components/schemas/ErrorResponse'
- description: unexpected error
+ text/plain:
+ example: "The search could not be completed"
security:
- cookieAuth: []
summary: Searches the archives and returns the results that match