Skip to content

Commit 0d11dc8

Browse files
committed
Some API spec fixed
1 parent 1171d89 commit 0d11dc8

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

echo/openapi.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,18 @@
6464
}
6565
},
6666
"400": {
67-
"description": "The body data was malformed or incorrect.",
67+
"description": "Request body malformed or incorrect.",
68+
"content": {
69+
"application/json": {
70+
"schema": {
71+
"type": "object",
72+
"$ref": "#/components/schemas/ErrorResponse"
73+
}
74+
}
75+
}
76+
},
77+
"422": {
78+
"description": "Request body contained semantic errors.",
6879
"content": {
6980
"application/json": {
7081
"schema": {
@@ -144,7 +155,7 @@
144155
}
145156
],
146157
"get": {
147-
"summary": "Security Token Info.",
158+
"summary": "Security Token Info",
148159
"description": "View which Paste a particular security token is associated with.",
149160
"operationId": "security-info",
150161
"tags": ["Security"],
@@ -172,7 +183,7 @@
172183
}
173184
},
174185
"delete": {
175-
"summary": "Delete Paste with Security Token.",
186+
"summary": "Delete Paste with Security Token",
176187
"description": "Delete the Paste associated with this security token.",
177188
"operationId": "security-delete",
178189
"tags": ["Security"],
@@ -417,11 +428,18 @@
417428
"ErrorResponse": {
418429
"title": "ErrorResponse",
419430
"type": "object",
431+
"description": "Generic response when something went wrong.",
420432
"properties": {
421433
"message": {
422-
"type": "string"
434+
"type": "string",
435+
"description": "The error message."
436+
},
437+
"errors": {
438+
"type": "object",
439+
"description": "Detailed information on the error. May not be present."
423440
}
424-
}
441+
},
442+
"required": ["message"]
425443
}
426444
}
427445
}

0 commit comments

Comments
 (0)