diff --git a/sherlock/resources/data.schema.json b/sherlock/resources/data.schema.json index a3f270d..4e4a222 100644 --- a/sherlock/resources/data.schema.json +++ b/sherlock/resources/data.schema.json @@ -69,6 +69,12 @@ "properties": { "errorType": { "const": "status_code" } } } }, + "if": { "properties": { "errorType": { "const": "message" } } }, + "then": { "required": [ "errorMsg" ] }, + "else": { + "if": { "properties": { "errorType": { "const": "response_url" } } }, + "then": { "required": [ "errorUrl" ] } + }, "additionalProperties": false } }