Schema for error response #276
Labels
bug
Something isn't working
good first issue
Good for newcomers
medium priority
Medium priority issue
ACTUAL:
Some API return JSON like `
{message: "error text",...}
, and some like
{error: "error text",...}
EXPECTED:
The same schema for all the endpoints and for any errors status (4xx).
Use this
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"message": {
"type": "string"
},
"httpStatusCode": {
"type": "integer"
},
"timestamp": {
"type": "string"
}
},
"required": [
"message",
"httpStatusCode",
"timestamp"
]
The text was updated successfully, but these errors were encountered: