Skip to content

Commit 197254c

Browse files
authored
Merge pull request #191 from athmangude/agude/permissionspec
agude/permissionspec
2 parents 95a3711 + e2c6cbb commit 197254c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

specs/permissions.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ The "permissions" member is a JSON object whose members permission objects. The
4343
### note
4444
The "note" member is a freeform string that provides additional details at about the permission that cannot be determined from the other members of the permission object.
4545

46-
### alsoRequires
47-
The "alsoRequires" member is logical expression of permissions that must be presented as claims alongside the current permission.
48-
49-
```
50-
(User.Read | User.Read.All) & Group.Read
51-
```
52-
5346
### implicit
5447
The "implicit" member is a boolean value that indicates that the current permission object is implied. The default value is "false". This member us usually set to "true" in combination with a "alsoRequires" expression.
5548

@@ -166,6 +159,13 @@ The "includedProperties" member is an array of strings that identify properties
166159
### excludedProperties
167160
The "includedProperties" member is an array of strings that identify properties of the resource representation returned by the path, that are not accessible with the permission.
168161

162+
### alsoRequires
163+
The "alsoRequires" member is logical expression of permissions that must be presented as claims alongside the current permission.
164+
165+
```
166+
(User.Read | User.Read.All) & Group.Read
167+
```
168+
169169
## Appendix A. JSON Schema for HTTP Problem
170170
```json
171171
{
@@ -187,10 +187,6 @@ The "includedProperties" member is an array of strings that identify properties
187187
"note": {
188188
"type": "string"
189189
},
190-
"alsoRequires": {
191-
"type": "string",
192-
"pattern": "[\\w]+\\.[\\w]+[\\.[\\w]+]?"
193-
},
194190
"schemes": {
195191
"type": "object",
196192
"patternProperties": {
@@ -258,6 +254,10 @@ The "includedProperties" member is an array of strings that identify properties
258254
"items": {
259255
"type": "string"
260256
}
257+
},
258+
"alsoRequires": {
259+
"type": "string",
260+
"pattern": "[\\w]+\\.[\\w]+[\\.[\\w]+]?"
261261
}
262262
},
263263
"scheme": {

0 commit comments

Comments
 (0)