|
124 | 124 | } |
125 | 125 | } |
126 | 126 | }, |
| 127 | + "currency": { |
| 128 | + "$id": "#/definitions/currency", |
| 129 | + "type": [ |
| 130 | + "string", |
| 131 | + "null" |
| 132 | + ], |
| 133 | + "pattern": "^[A-Z]{3}$", |
| 134 | + "default": "USD", |
| 135 | + "description": "An ISO 4217 Alphabetic Currency Code representing currency of the payee. If null, USD cents is implied.", |
| 136 | + "examples": [ |
| 137 | + "USD", |
| 138 | + "EUR", |
| 139 | + "GBP" |
| 140 | + ] |
| 141 | + }, |
127 | 142 | "MDS_FeatureCollection_Route": { |
128 | 143 | "$id": "#/definitions/MDS_FeatureCollection_Route", |
129 | 144 | "title": "MDS GeoJSON FeatureCollection Route", |
|
155 | 170 | } |
156 | 171 | } |
157 | 172 | }, |
| 173 | + "propulsion_type": { |
| 174 | + "$id": "#/definitions/propulsion_type", |
| 175 | + "type": "string", |
| 176 | + "description": "The type of propulsion", |
| 177 | + "enum": [ |
| 178 | + "combustion", |
| 179 | + "electric", |
| 180 | + "electric_assist", |
| 181 | + "human" |
| 182 | + ] |
| 183 | + }, |
158 | 184 | "propulsion_types": { |
159 | 185 | "$id": "#/definitions/propulsion_types", |
160 | 186 | "type": "array", |
161 | | - "description": "The type of propulsion; allows multiple values", |
| 187 | + "description": "Array of propulsion types, allowing multiple values", |
162 | 188 | "items": { |
163 | | - "type": "string", |
164 | | - "enum": [ |
165 | | - "combustion", |
166 | | - "electric", |
167 | | - "electric_assist", |
168 | | - "human" |
169 | | - ] |
| 189 | + "$id": "#/definitions/propulsion_types/items", |
| 190 | + "$ref": "#/definitions/propulsion_type" |
170 | 191 | }, |
171 | | - "uniqueItems": true, |
172 | | - "minItems": 1 |
| 192 | + "uniqueItems": true |
173 | 193 | }, |
174 | 194 | "vehicle_type": { |
175 | 195 | "$id": "#/definitions/vehicle_type", |
|
250 | 270 | "propulsion_types": { |
251 | 271 | "$id": "#/definitions/vehicle/properties/propulsion_types", |
252 | 272 | "$ref": "#/definitions/propulsion_types", |
253 | | - "description": "The type of propulsion; allows multiple values" |
| 273 | + "description": "The type of propulsion; allows multiple values", |
| 274 | + "minItems": 1 |
254 | 275 | }, |
255 | 276 | "trip_id": { |
256 | 277 | "$id": "#/properties/data/properties/trips/items/properties/trip_id", |
|
340 | 361 | }, |
341 | 362 | "currency": { |
342 | 363 | "$id": "#/properties/data/properties/trips/items/properties/currency", |
343 | | - "type": [ |
344 | | - "string", |
345 | | - "null" |
346 | | - ], |
347 | | - "pattern": "^[A-Z]{3}$", |
348 | | - "default": "USD", |
349 | | - "description": "An ISO 4217 Alphabetic Currency Code representing the currency of the payee. If null, USD cents is implied.", |
350 | | - "examples": [ |
351 | | - "USD", |
352 | | - "EUR", |
353 | | - "GBP" |
354 | | - ] |
| 364 | + "$ref": "#/definitions/currency" |
355 | 365 | } |
356 | 366 | } |
357 | 367 | } |
|
0 commit comments