From 63f70f4c1c41e78ca0c7a1c057a4bb76a3ef6250 Mon Sep 17 00:00:00 2001 From: "Simone Moglianesi @make.com" Date: Tue, 19 May 2026 23:45:11 +0200 Subject: [PATCH] feat: add data, statusCode, headers to error directive JSON schema Add the new error directive properties to the Monaco JSON Schema so they are no longer flagged as "Property is not allowed": - data: custom data to pass through the error handling path - statusCode: HTTP status code or custom status code (number) - headers: response headers to pass through the error handling path Added to both top-level error properties and per-status-code patternProperties (^[0-9][0-9][0-9]$). Ref: IEN-15364 --- syntaxes/imljson/schemas/response.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/syntaxes/imljson/schemas/response.json b/syntaxes/imljson/schemas/response.json index 8a942c9a..df941b3c 100644 --- a/syntaxes/imljson/schemas/response.json +++ b/syntaxes/imljson/schemas/response.json @@ -68,6 +68,16 @@ "type": { "description": "An expression that specifies the error type.", "$ref": "enums.json#/definitions/error-type" + }, + "data": { + "description": "Custom data to pass through the error handling path." + }, + "statusCode": { + "description": "HTTP status code or custom status code.", + "type": ["number", "string"] + }, + "headers": { + "description": "Response headers to pass through the error handling path." } }, "patternProperties": { @@ -83,6 +93,16 @@ "type": { "description": "An expression that specifies the error type.", "$ref": "enums.json#/definitions/error-type" + }, + "data": { + "description": "Custom data to pass through the error handling path." + }, + "statusCode": { + "description": "HTTP status code or custom status code.", + "type": ["number", "string"] + }, + "headers": { + "description": "Response headers to pass through the error handling path." } }, "required": ["message"],