Commit eb660e2e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_api_style: Error message provide full url of the error message schema

parent 4d2d2343
......@@ -11,7 +11,7 @@ container.REQUEST.RESPONSE.setStatus(400)
# We follow here Paypal api guideline
# https://github.com/paypal/api-standards/blob/master/api-style-guide.md#error-schema
error_dict = {
"$schema": "error-response-schema.json",
"$schema": context.absolute_url().strip("/") + "/error-response-schema.json",
"debug_id": error.getId(),
"status": error_code,
"message": error_message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment