-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease-schema.json
153 lines (153 loc) · 5.21 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
{
"definitions": {
"Implementation": {
"properties": {
"tariffs": {
"title": "Tariffs",
"description": "The tariffs as they apply during the life of the project. Also known as tolls or user charges. These may be initially copied from the contract section, and then updated with any revisions over the lifetime of the implementation phase. ",
"type": "array",
"items": {
"$ref": "#/definitions/Tariff"
},
"uniqueItems": true,
"minItems": 1
}
}
},
"Contract": {
"properties": {
"tariffs": {
"title": "Tariffs",
"description": "The tariffs as set out in the contract schedules. Also known as tolls or user charges. Updates to tariffs over the operation of the contract can be provided in the implementation section.",
"type": "array",
"items": {
"$ref": "#/definitions/Tariff"
},
"uniqueItems": true,
"minItems": 1
}
}
},
"Tariff": {
"title": "Tariff",
"description": "An item in a tariff table, setting out a breakdown of the user or government fees payable in relation to each unit of a particular good or services.",
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Identifier",
"description": "A local identifier for this specific tariff. This field is used to keep track of revisions of a tariff across multiple OCDS releases.",
"type": "string",
"minLength": 1
},
"title": {
"title": "Title",
"description": "The title of this tariff.",
"type": [
"string",
"null"
],
"minLength": 1
},
"paidBy": {
"title": "Paid by",
"description": "Is this a user charge (paid by businesses or citizens using the facilities provided by the contract), or a charge paid by the government?",
"type": [
"string",
"null"
],
"codelist": "chargePaidBy.csv",
"openCodelist": false,
"enum": [
"government",
"user",
null
]
},
"period": {
"title": "Period",
"description": "The period to which this tariff applies.",
"$ref": "#/definitions/Period"
},
"value": {
"title": "Value",
"description": "The price per unit of this tariff.",
"$ref": "#/definitions/Value"
},
"unit": {
"title": "Unit",
"description": "The unit against which this tariff is charged.",
"type": "object",
"properties": {
"name": {
"title": "Unit name",
"description": "The name of the unit that the tariff is charged against. E.g. tonnes,",
"type": [
"string",
"null"
],
"minLength": 1
},
"scheme": {
"title": "Scheme",
"description": "The list from which units of measure identifiers are taken. It is recommended to use the scheme 'UNCEFACT' and codes from the UN/CEFACT Recommendation 20 list of \"Codes for Units of Measure Used in International Trade\".",
"type": [
"string",
"null"
],
"codelist": "unitClassificationScheme.csv",
"openCodelist": true,
"minLength": 1
},
"id": {
"title": "ID",
"description": "The identifier from the codelist referenced in the schema property. For example, with UNCEFACT, this is the value of the 'Common Code' column. From this identifier, applications can look-up the human readable name or symbol for this unit of measure. ",
"type": [
"string",
"null"
],
"minLength": 1
},
"uri": {
"title": "URI",
"description": "If the scheme used provide a machine-readable URI for this unit of measure, this can be given.",
"type": [
"string",
"null"
],
"format": "uri"
}
},
"minProperties": 1
},
"dimensions": {
"title": "Dimensions",
"description": "Used to capture the different breakdowns in tariff charges. Any number of dimensions can be recorded within this object. Dimensions names should follow the camelCase conventions of OCDS.",
"type": "object",
"patternProperties": {
"^.*": {
"type": [
"string",
"null"
],
"minLength": 1
}
},
"minProperties": 1
},
"notes": {
"title": "Notes",
"description": "Any notes on this tariff line item. This may include clarifying information.",
"type": [
"string",
"null"
],
"minLength": 1
}
},
"minProperties": 1
}
}
}