-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathacl.json-schema
42 lines (42 loc) · 1.3 KB
/
acl.json-schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ACL",
"description": "Access Control List",
"type": "array",
"items": { "$ref": "#/definitions/ace" },
"definitions": {
"ace": {
"type": "object",
"properties": {
"user": { "$ref": "#/definitions/user" },
"role": {
"description": "The user's role",
"type": "string"
}
},
"required": ["user", "role"]
},
"user": {
"description": "A subset of contact-schema for a user.",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"displayName": {
"description": "The display name of user.",
"type": "string"
},
"name": {
"description": "The full name of the user.",
"type": "object",
"properties": {
"givenName": { "type": "string" },
"familyName": { "type": "string" }
}
}
},
"required": [ "id", "displayName" ]
}
}
}