-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYaPPL_schema.json
100 lines (100 loc) · 3.06 KB
/
YaPPL_schema.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {},
"type": "object",
"properties": {
"_id": {"type": "number"},
"preference": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rule": {
"type": "object",
"properties": {
"purpose": {
"type": "object",
"properties": {
"permitted": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"default": []
},
"excluded": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"default": []
}
},
"required": ["permitted", "excluded"],
"minProperties": 2,
"maxProperties": 2,
"additionalProperties": false
},
"utilizer": {
"type": "object",
"properties": {
"permitted": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"default": []
},
"excluded": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true,
"default": []
}
},
"required": ["permitted", "excluded"],
"minProperties": 2,
"maxProperties": 2,
"additionalProperties": false
},
"transformation": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attribute": {"type": "string"},
"tr_func": {
"type": "string",
"default": ""
}
},
"dependencies": {
"attribute": ["tr_func"],
"tr_func": ["attribute"]
},
"minProperties": 2,
"maxProperties": 2,
"additionalProperties": false
},
"uniqueItems": true,
"default": []
},
"valid_from": {
"type": "string",
"format": "date-time"
},
"exp_date": {
"type": "string",
"format": "date-time",
"default": "0000-00-00T00:00:00.00Z"
}
},
"required": ["purpose", "utilizer", "transformation", "valid_from", "exp_date"],
"minProperties": 5,
"maxProperties": 5,
"additionalProperties": false
}
}
},
"uniqueItems": true,
"minItems": 1
}
}
}