File tree Expand file tree Collapse file tree 1 file changed +27
-20
lines changed
sherlock_project/resources Expand file tree Collapse file tree 1 file changed +27
-20
lines changed Original file line number Diff line number Diff line change 52
52
},
53
53
"errorUrl" : { "type" : " string" },
54
54
"response_url" : { "type" : " string" },
55
-
56
- "aliases" : {
55
+ "aliases" : {
57
56
"type" : " array" ,
58
- "items" : {
59
- "type" : " string"
57
+ "items" : { "type" : " string" }
58
+ }
59
+ },
60
+ "allOf" : [
61
+ {
62
+ "if" : {
63
+ "properties" : { "errorType" : { "const" : " message" } }
64
+ },
65
+ "then" : {
66
+ "required" : [ " errorMsg" ]
60
67
}
61
68
},
62
- "dependencies" : {
63
- "errorMsg" : {
64
- "properties" : { "errorType" : { "const" : " message" } }
65
- },
66
- "errorUrl" : {
67
- "properties" : { "errorType" : { "const" : " response_url" } }
69
+ {
70
+ "if" : {
71
+ "properties" : { "errorType" : { "const" : " response_url" } }
72
+ },
73
+ "then" : {
74
+ "required" : [ " errorUrl" ]
75
+ }
68
76
},
69
- "errorCode" : {
70
- "properties" : { "errorType" : { "const" : " status_code" } }
77
+ {
78
+ "if" : {
79
+ "properties" : { "errorType" : { "const" : " status_code" } }
80
+ },
81
+ "then" : {
82
+ "required" : [ " errorCode" ]
83
+ }
71
84
}
72
- },
73
- "if" : { "properties" : { "errorType" : { "const" : " message" } } },
74
- "then" : { "required" : [ " errorMsg" ] },
75
- "else" : {
76
- "if" : { "properties" : { "errorType" : { "const" : " response_url" } } },
77
- "then" : { "required" : [ " errorUrl" ] }
78
- },
85
+ ],
79
86
"additionalProperties" : false
80
87
}
81
88
},
82
89
"additionalProperties" : false ,
83
90
"$defs" : {
84
91
"tag" : { "type" : " string" , "enum" : [ " adult" , " gaming" ] }
85
92
}
86
- }
93
+ }
You can’t perform that action at this time.
0 commit comments