Commit fd4a3654 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

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

parent 87045a15
...@@ -11,7 +11,7 @@ container.REQUEST.RESPONSE.setStatus(400) ...@@ -11,7 +11,7 @@ container.REQUEST.RESPONSE.setStatus(400)
# We follow here Paypal api guideline # We follow here Paypal api guideline
# https://github.com/paypal/api-standards/blob/master/api-style-guide.md#error-schema # https://github.com/paypal/api-standards/blob/master/api-style-guide.md#error-schema
error_dict = { error_dict = {
"$schema": "error-response-schema.json", "$schema": context.absolute_url().strip("/") + "/error-response-schema.json",
"debug_id": error.getId(), "debug_id": error.getId(),
"status": error_code, "status": error_code,
"message": error_message "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