1= {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$id": "http://coda.cs.cmu.edu/schemas/coda_acls.json",
4 "$defs": {
5 "fspath": {"type": "string"},
6 "user_or_group": {"type": "string"},
7 "acl_rights": {"type": "string", "pattern": "^-?r?l?i?d?w?k?a?$"},
8 "acl_entry": {
9 "type": "object",
10 "properties": {
11 "name": {"$ref": "#/$defs/user_or_group"},
12 "rights": {"$ref": "#/$defs/acl_rights"},
13 },
14 "required": ["name", "rights"],
15 },
16 "acl": {
17 "type": "object",
18 "properties": {
19 "path": {"$ref": "#/$defs/fspath"},
20 "acl": {"type": "array", "items": {"$ref": "#/$defs/acl_entry"}},
21 },
22 "required": ["path", "acl"],
23 },
24 },
25 "type": "object",
26 "properties": {"acls": {"type": "array", "items": {"$ref": "#/$defs/acl"}}},
27 "required": ["acls"],
28}