Skip to content

Commit e793a50

Browse files
committed
add exclusive contraints for Action/NotAction Resource/NotResource to schema
1 parent 0f73f84 commit e793a50

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

schema.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@
1818
},
1919
"Statement": {
2020
"type": "object",
21-
"required": ["Effect"],
21+
"allOf": [{
22+
"required": ["Effect"]
23+
}, {
24+
"not": {
25+
"anyOf": [{
26+
"required": ["Action", "NotAction"]
27+
}, {
28+
"required": ["Resource", "NotResource"]
29+
}]
30+
}
31+
}],
32+
2233
"properties": {
2334
"Effect": {
2435
"type": "string",

0 commit comments

Comments
 (0)