-
Notifications
You must be signed in to change notification settings - Fork 3
/
release-schema.json
324 lines (324 loc) · 10 KB
/
release-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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
{
"definitions": {
"Criterion": {
"title": "Criterion",
"description": "A criterion on which bids, tenderers, lots or items will be judged, evaluated or assessed.",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Identifier",
"description": "The identifier for this criterion. It must be unique and cannot change within the Open Contracting Process it is part of (defined by a single ocid). See the [identifier guidance](https://standard.open-contracting.org/latest/en/schema/identifiers/) for further details.",
"type": [
"string",
"integer"
],
"minLength": 1
},
"title": {
"title": "Title",
"description": "A title for this criterion.",
"type": [
"string",
"null"
],
"minLength": 1
},
"description": {
"title": "Description",
"description": "A description of this criterion.",
"type": [
"string",
"null"
],
"minLength": 1
},
"relatesToTenderer": {
"title": "Relates to tenderer",
"description": "The criterion judges, evaluates or assesses a tenderer.",
"type": [
"boolean",
"null"
]
},
"relatedItem": {
"title": "Related item",
"description": "The identifier of the item in the tender section to which this criterion applies.",
"type": [
"string",
"null"
],
"minLength": 1
},
"relatedLots": {
"title": "Related lot(s)",
"description": "The identifiers of the lots to which this criterion applies.",
"type": [
"array",
"null"
],
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true,
"minItems": 1
},
"requirementGroups": {
"title": "Requirement groups",
"description": "A list of requirement groups for this Criterion. A criterion is satisfied by one or more requirement groups being met. A requirement group is met when all requirements in the group are satisfied.",
"type": "array",
"items": {
"$ref": "#/definitions/RequirementGroup"
},
"uniqueItems": true,
"minItems": 1
}
},
"minProperties": 1
},
"RequirementGroup": {
"title": "Requirement group",
"description": "A requirement group is a set of requirements that must be fulfilled together to validate a criterion.",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Identifier",
"description": "The identifier for this requirement group. It must be unique and cannot change within the Open Contracting Process it is part of (defined by a single ocid). See the [identifier guidance](https://standard.open-contracting.org/latest/en/schema/identifiers/) for further details.",
"type": "string",
"minLength": 1
},
"description": {
"title": "Description",
"description": "A description of this requirement group.",
"type": [
"string",
"null"
],
"minLength": 1
},
"requirements": {
"title": "Requirements",
"description": "A list requirements which must all be satisfied for the requirement group to be met.",
"type": "array",
"items": {
"$ref": "#/definitions/Requirement"
},
"uniqueItems": true,
"minItems": 1
}
},
"minProperties": 1
},
"Requirement": {
"title": "Requirement",
"description": "An atomic requirement. Requirements can specify the expected value that the response has to contain, or a range of threshold values within which the response has to fit in. The requirement may apply to a certain period of time.",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Requirement identifier",
"description": "The identifier for this requirement. It must be unique and cannot change within the Open Contracting Process it is part of (defined by a single ocid). See the [identifier guidance](https://standard.open-contracting.org/latest/en/schema/identifiers/) for further details.",
"type": "string",
"minLength": 1
},
"title": {
"title": "Requirement title",
"description": "The title of this atomic requirement.",
"type": [
"string",
"null"
],
"minLength": 1
},
"description": {
"title": "Requirement description",
"description": "A free text description for this atomic requirement.",
"type": [
"string",
"null"
],
"minLength": 1
},
"dataType": {
"title": "Requirement datatype",
"description": "The data type in which the response must be provided.",
"type": [
"string",
"null"
],
"codelist": "dataType.csv",
"openCodelist": false,
"enum": [
"string",
"date-time",
"number",
"integer",
"boolean",
null
]
},
"pattern": {
"title": "Response validation pattern",
"description": "A regular expression with which to validate the response.",
"type": [
"string",
"null"
],
"minLength": 1
},
"expectedValue": {
"title": "Expected value",
"description": "The expected value of the requirement, when the response must be specific value.",
"type": [
"string",
"number",
"boolean",
"null"
],
"minLength": 1
},
"minValue": {
"title": "Minimum value",
"description": "The lower bound of the requirement, when the response must be within a certain range.",
"type": [
"number",
"null"
]
},
"maxValue": {
"title": "Maximum value",
"description": "The upper bound of the requirement, when the response must be within a certain range.",
"type": [
"number",
"null"
]
},
"period": {
"title": "Period",
"description": "The period to which the requirement applies: for example, the tenderer's turnover in a given year.",
"$ref": "#/definitions/Period"
}
},
"minProperties": 1
},
"RequirementResponse": {
"title": "Requirement response",
"description": "An assertion that responds to a single requirement. A response provides the value for the requirement and may provide the period to which it applies.",
"type": "object",
"required": [
"id",
"requirement"
],
"properties": {
"id": {
"title": "Identifier",
"description": "The unique identifier of this response in the context of the contracting process.",
"type": "string",
"minLength": 1
},
"title": {
"title": "Title",
"description": "The title of this response.",
"type": [
"string",
"null"
],
"minLength": 1
},
"description": {
"title": "Description",
"description": "The description of this response.",
"type": [
"string",
"null"
],
"minLength": 1
},
"value": {
"title": "Value",
"description": "The value of this response.",
"type": [
"string",
"number",
"boolean",
"null"
],
"minLength": 1
},
"period": {
"title": "Period",
"description": "The period to which the response applies.",
"$ref": "#/definitions/Period"
},
"requirement": {
"title": "Related requirement",
"description": "A reference to the requirement to which the response applies.",
"$ref": "#/definitions/RequirementReference"
}
},
"minProperties": 1
},
"RequirementReference": {
"title": "Requirement reference",
"description": "A reference to a requirement.",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Requirement ID",
"description": "The identifier of the requirement to which the response applies.",
"type": "string",
"minLength": 1
},
"title": {
"title": "Requirement title",
"description": "The title of the requirement to which the response applies.",
"type": [
"string",
"null"
],
"minLength": 1
}
},
"minProperties": 1
},
"Bid": {
"properties": {
"requirementResponses": {
"title": "Requirement responses",
"description": "The responses of this bid to the requirements.",
"type": "array",
"items": {
"$ref": "#/definitions/RequirementResponse"
},
"uniqueItems": true,
"minItems": 1
}
}
},
"Tender": {
"properties": {
"criteria": {
"title": "Criteria",
"description": "Criteria on which bids, tenderers, lots or items will be judged, evaluated or assessed.",
"type": "array",
"items": {
"$ref": "#/definitions/Criterion"
},
"uniqueItems": true,
"minItems": 1
}
}
}
}
}