Open TetianaPerinha opened 2 months ago
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" ]
Link to the expected schema https://github.com/Sunagatov/Iced-Latte/blob/development/src/test/resources/security/model/schema/security-schema-failed.json
Hi , can i help here
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" ]