Skip to content

Commit 50bd6eb

Browse files
Fix json format doc for slots in templates (#163)
1 parent afd1077 commit 50bd6eb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/collections/_policies/json-format.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ The `op` key is required. The `op` object must have one of the following string
169169
```json
170170
"principal": {
171171
"op": "==",
172-
"slot": { "?principal" }
172+
"slot": "?principal"
173173
},
174174
```
175175
@@ -211,7 +211,7 @@ The `op` key is required. The `op` object must have one of the following string
211211
```json
212212
"principal": {
213213
"op": "in",
214-
"slot": { "?principal" }
214+
"slot": "?principal"
215215
},
216216
```
217217
@@ -277,7 +277,7 @@ The `op` key is required. The `op` object must have one of the following string
277277
"op": "is",
278278
"entity_type": "User",
279279
"in": {
280-
"slot": { "?principal" }
280+
"slot": "?principal"
281281
}
282282
},
283283
```
@@ -453,7 +453,7 @@ The `op` object must have one of the following string values:
453453
```json
454454
"resource": {
455455
"op": "==",
456-
"slot": { "?resource" }
456+
"slot": "?resource"
457457
},
458458
```
459459
@@ -495,7 +495,7 @@ The `op` object must have one of the following string values:
495495
```json
496496
"resource": {
497497
"op": "in",
498-
"slot": { "?resource" }
498+
"slot": "?resource"
499499
}
500500
```
501501
@@ -561,7 +561,7 @@ The `op` object must have one of the following string values:
561561
"op": "is",
562562
"entity_type": "file",
563563
"in": {
564-
"slot": { "?resource" }
564+
"slot": "?resource"
565565
}
566566
},
567567
```
@@ -1177,7 +1177,7 @@ Here is the JSON representation of this policy set, plus a template-linked polic
11771177
},
11781178
"resource": {
11791179
"op": "in",
1180-
"slot": { "?resource" }
1180+
"slot": "?resource"
11811181
},
11821182
"conditions": []
11831183
}

0 commit comments

Comments
 (0)