Prevent mixing of error values

This commit is contained in:
Paul Pfeister 2024-05-06 18:37:21 -04:00
parent 4b2f8ad2d0
commit cc0b57c0af
1 changed files with 12 additions and 1 deletions

View File

@ -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
}
}