From cc0b57c0afa824412d43753865ffbffda0f8d263 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Mon, 6 May 2024 18:37:21 -0400 Subject: [PATCH] Prevent mixing of error values --- sherlock/resources/data.schema.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sherlock/resources/data.schema.json b/sherlock/resources/data.schema.json index a68399a..a3f270d 100644 --- a/sherlock/resources/data.schema.json +++ b/sherlock/resources/data.schema.json @@ -18,7 +18,7 @@ "request_payload": { "type": "object" }, "__comment__": { "type": "string", - "description": "Used to clarify important target information if (and only if) a commit message would not suffice.\nThis key should not be parsed anywhere within Sherlock.", + "description": "Used to clarify important target information if (and only if) a commit message would not suffice.\nThis key should not be parsed anywhere within Sherlock." }, "tags": { "oneOf": [ @@ -58,6 +58,17 @@ "errorUrl": { "type": "string" }, "response_url": { "type": "string" } }, + "dependencies": { + "errorMsg": { + "properties" : { "errorType": { "const": "message" } } + }, + "errorUrl": { + "properties": { "errorType": { "const": "response_url" } } + }, + "errorCode": { + "properties": { "errorType": { "const": "status_code" } } + } + }, "additionalProperties": false } }