Commit 00c18311 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

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

parent 007e2a2e
......@@ -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