From c10fec909a2b806470e57fc86641450c516f472a Mon Sep 17 00:00:00 2001 From: Daniel Verner Date: Mon, 8 Dec 2025 12:37:39 +0100 Subject: [PATCH 1/5] fix --- specification/schemas/hooks/HookActionRejectReturn.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/schemas/hooks/HookActionRejectReturn.json b/specification/schemas/hooks/HookActionRejectReturn.json index aeb896f4..e425010c 100644 --- a/specification/schemas/hooks/HookActionRejectReturn.json +++ b/specification/schemas/hooks/HookActionRejectReturn.json @@ -14,7 +14,10 @@ "additionalProperties": false, "properties": { "message": { - "type": "string", + "type": [ + "string", + "null" + ], "maxLength": 255, "description": "Message explaining the reason for rejection.", "example": "The items you've selected are not eligible to be returned because..." From dc111498945c2655cefcec875524fafb8078b841 Mon Sep 17 00:00:00 2001 From: Daniel Verner Date: Mon, 8 Dec 2025 13:09:33 +0100 Subject: [PATCH 2/5] add required attrs to Reject hook --- specification/schemas/hooks/HookActionRejectReturn.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/schemas/hooks/HookActionRejectReturn.json b/specification/schemas/hooks/HookActionRejectReturn.json index e425010c..0a3a74a6 100644 --- a/specification/schemas/hooks/HookActionRejectReturn.json +++ b/specification/schemas/hooks/HookActionRejectReturn.json @@ -1,5 +1,6 @@ { "type": "object", + "required": ["action_type"], "additionalProperties": false, "properties": { "action_type": { @@ -15,8 +16,7 @@ "properties": { "message": { "type": [ - "string", - "null" + "string" ], "maxLength": 255, "description": "Message explaining the reason for rejection.", From cca1b05fba1c1f67770546d92b093300821bd48e Mon Sep 17 00:00:00 2001 From: Daniel Verner Date: Mon, 8 Dec 2025 13:11:49 +0100 Subject: [PATCH 3/5] changes --- specification/schemas/hooks/HookActionRejectReturn.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/schemas/hooks/HookActionRejectReturn.json b/specification/schemas/hooks/HookActionRejectReturn.json index 0a3a74a6..c5c804b6 100644 --- a/specification/schemas/hooks/HookActionRejectReturn.json +++ b/specification/schemas/hooks/HookActionRejectReturn.json @@ -15,9 +15,7 @@ "additionalProperties": false, "properties": { "message": { - "type": [ - "string" - ], + "type": "string", "maxLength": 255, "description": "Message explaining the reason for rejection.", "example": "The items you've selected are not eligible to be returned because..." From 52da2a1ff9343c68541c588f8297176449536793 Mon Sep 17 00:00:00 2001 From: Daniel Verner Date: Mon, 8 Dec 2025 13:18:24 +0100 Subject: [PATCH 4/5] try something --- specification/schemas/hooks/HookActionRejectReturn.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/schemas/hooks/HookActionRejectReturn.json b/specification/schemas/hooks/HookActionRejectReturn.json index c5c804b6..52424762 100644 --- a/specification/schemas/hooks/HookActionRejectReturn.json +++ b/specification/schemas/hooks/HookActionRejectReturn.json @@ -1,6 +1,5 @@ { "type": "object", - "required": ["action_type"], "additionalProperties": false, "properties": { "action_type": { @@ -11,7 +10,7 @@ "values": { "type": "array", "items": { - "type": "object", + "type": ["object", "null"], "additionalProperties": false, "properties": { "message": { From 087e31eeea3cb44be8ccc01cf306e6c9dbf0686b Mon Sep 17 00:00:00 2001 From: Daniel Verner Date: Mon, 8 Dec 2025 14:05:44 +0100 Subject: [PATCH 5/5] fix --- specification/schemas/hooks/HookActionRejectReturn.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/schemas/hooks/HookActionRejectReturn.json b/specification/schemas/hooks/HookActionRejectReturn.json index 52424762..97c73439 100644 --- a/specification/schemas/hooks/HookActionRejectReturn.json +++ b/specification/schemas/hooks/HookActionRejectReturn.json @@ -10,11 +10,10 @@ "values": { "type": "array", "items": { - "type": ["object", "null"], "additionalProperties": false, "properties": { "message": { - "type": "string", + "type": ["string", "null"], "maxLength": 255, "description": "Message explaining the reason for rejection.", "example": "The items you've selected are not eligible to be returned because..."