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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
{
"$schema":"http://json-schema.org/draft-07/schema",
"definitions":{
"group_property":{
"type":"object",
"title":"Group property object",
"description":"Assigns wrapped property to group.",
"if":{
"properties":{
"property":{
"const":"get"
}
}
},
"then":{
"properties":{
"group":{
"type":"string"
},
"property":{
"const":"get"
},
"criteria":{
"$ref":"#/definitions/criteria"
}
},
"additionalProperties":false
},
"else":{
"properties":{
"group":{
"type":"string"
},
"property":{
"const":"set"
},
"criteria":{
"$ref":"#/definitions/criteria"
},
"arguments":{
"oneOf":[
{
"type":"array"
},
{
"type":"string"
}
]
}
},
"additionalProperties":false
},
"required":[
"group"
]
},
"group_function":{
"type":"object",
"title":"Group function object",
"description":"Assigns wrapped function to group.",
"properties":{
"group":{
"type":"string"
},
"criteria":{
"$ref":"#/definitions/criteria"
},
"arguments":{
"oneOf":[
{
"type":"array"
},
{
"type":"string"
}
]
}
},
"required":[
"group"
],
"additionalProperties":false
},
"criteria":{
"type":"array",
"title":"Criteria array",
"description":"Contains criterion objects to define parent group access/weight.",
"items":{
"$ref":"#/definitions/criterion_value"
}
},
"criterion_value":{
"type":"object",
"title":"Value criterion",
"description":"Criterion defined as number of accesses to resource.",
"properties":{
"value":{
"type":"integer",
"minimum":1,
"maximum":1000
},
"weight":{
"type":"integer",
"minimum":0
}
},
"required":[
"value",
"weight"
],
"additionalProperties":false
}
},
"type":"array",
"items":{
"type":"object",
"title":"Wrapper object",
"description":"Represents wrapped resource.",
"if":{
"properties":{
"type":{
"const":"property"
}
}
},
"then":{
"properties":{
"resource":{
"type":"string"
},
"type":{
"const":"property"
},
"groups":{
"type":"array",
"items":{
"$ref":"#/definitions/group_property"
}
}
},
"additionalProperties":false
},
"else":{
"properties":{
"resource":{
"type":"string"
},
"type":{
"const":"function"
},
"groups":{
"type":"array",
"items":{
"$ref":"#/definitions/group_function"
}
}
},
"additionalProperties":false
},
"required":[
"resource",
"type"
]
}
}
|