Skip to content

Commit

Permalink
regenerate all schemas again
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Sep 12, 2020
1 parent 788e3d9 commit f9727e3
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 93 deletions.
16 changes: 11 additions & 5 deletions agency/get_stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@
},
"devices": {
"$id": "#/definitions/stop/properties/devices",
"type": "array",
"description": "List of device_id for vehicles currently at this Stop.",
"items": {
"$ref": "#/definitions/uuid"
}
"$ref": "#/definitions/uuid_array",
"description": "List of device_id for vehicles currently at this Stop."
}
}
},
Expand Down Expand Up @@ -171,6 +168,15 @@
],
"pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"
},
"uuid_array": {
"$id": "#/definitions/uuid_array",
"type": "array",
"description": "Array of UUID",
"items": {
"$id": "#/definitions/uuid_array/items",
"$ref": "#/definitions/uuid"
}
},
"vehicle_type_counts": {
"$id": "#/definitions/vehicle_type_counts",
"type": "object",
Expand Down
17 changes: 6 additions & 11 deletions agency/get_vehicle.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"string": {
"$id": "#/definitions/string",
Expand Down Expand Up @@ -155,7 +149,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"year": {
"$id": "#/properties/year",
Expand Down
16 changes: 11 additions & 5 deletions agency/post_stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,8 @@
},
"devices": {
"$id": "#/definitions/stop/properties/devices",
"type": "array",
"description": "List of device_id for vehicles currently at this Stop.",
"items": {
"$ref": "#/definitions/uuid"
}
"$ref": "#/definitions/uuid_array",
"description": "List of device_id for vehicles currently at this Stop."
}
}
},
Expand Down Expand Up @@ -171,6 +168,15 @@
],
"pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"
},
"uuid_array": {
"$id": "#/definitions/uuid_array",
"type": "array",
"description": "Array of UUID",
"items": {
"$id": "#/definitions/uuid_array/items",
"$ref": "#/definitions/uuid"
}
},
"vehicle_type_counts": {
"$id": "#/definitions/vehicle_type_counts",
"type": "object",
Expand Down
17 changes: 6 additions & 11 deletions agency/post_vehicle.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"string": {
"$id": "#/definitions/string",
Expand Down Expand Up @@ -79,7 +73,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"year": {
"$id": "#/properties/year",
Expand Down
28 changes: 17 additions & 11 deletions provider/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,26 @@
}
}
},
"propulsion_type": {
"$id": "#/definitions/propulsion_type",
"type": "string",
"description": "The type of propulsion",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
},
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"vehicle_type": {
"$id": "#/definitions/vehicle_type",
Expand Down Expand Up @@ -332,7 +337,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"event_time": {
"$id": "#/properties/data/properties/status_changes/items/properties/event_time",
Expand Down
28 changes: 17 additions & 11 deletions provider/status_changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,21 +124,26 @@
}
}
},
"propulsion_type": {
"$id": "#/definitions/propulsion_type",
"type": "string",
"description": "The type of propulsion",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
},
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"vehicle_type": {
"$id": "#/definitions/vehicle_type",
Expand Down Expand Up @@ -273,7 +278,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"event_time": {
"$id": "#/properties/data/properties/status_changes/items/properties/event_time",
Expand Down
16 changes: 11 additions & 5 deletions provider/stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,8 @@
},
"devices": {
"$id": "#/definitions/stop/properties/devices",
"type": "array",
"description": "List of device_id for vehicles currently at this Stop.",
"items": {
"$ref": "#/definitions/uuid"
}
"$ref": "#/definitions/uuid_array",
"description": "List of device_id for vehicles currently at this Stop."
}
}
},
Expand Down Expand Up @@ -270,6 +267,15 @@
}
}
},
"uuid_array": {
"$id": "#/definitions/uuid_array",
"type": "array",
"description": "Array of UUID",
"items": {
"$id": "#/definitions/uuid_array/items",
"$ref": "#/definitions/uuid"
}
},
"vehicle_type_counts": {
"$id": "#/definitions/vehicle_type_counts",
"type": "object",
Expand Down
56 changes: 33 additions & 23 deletions provider/trips.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@
}
}
},
"currency": {
"$id": "#/definitions/currency",
"type": [
"string",
"null"
],
"pattern": "^[A-Z]{3}$",
"default": "USD",
"description": "An ISO 4217 Alphabetic Currency Code representing currency of the payee. If null, USD cents is implied.",
"examples": [
"USD",
"EUR",
"GBP"
]
},
"MDS_FeatureCollection_Route": {
"$id": "#/definitions/MDS_FeatureCollection_Route",
"title": "MDS GeoJSON FeatureCollection Route",
Expand Down Expand Up @@ -155,21 +170,26 @@
}
}
},
"propulsion_type": {
"$id": "#/definitions/propulsion_type",
"type": "string",
"description": "The type of propulsion",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
},
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"vehicle_type": {
"$id": "#/definitions/vehicle_type",
Expand Down Expand Up @@ -250,7 +270,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"trip_id": {
"$id": "#/properties/data/properties/trips/items/properties/trip_id",
Expand Down Expand Up @@ -340,18 +361,7 @@
},
"currency": {
"$id": "#/properties/data/properties/trips/items/properties/currency",
"type": [
"string",
"null"
],
"pattern": "^[A-Z]{3}$",
"default": "USD",
"description": "An ISO 4217 Alphabetic Currency Code representing the currency of the payee. If null, USD cents is implied.",
"examples": [
"USD",
"EUR",
"GBP"
]
"$ref": "#/definitions/currency"
}
}
}
Expand Down
28 changes: 17 additions & 11 deletions provider/vehicles.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,26 @@
"$ref": "#/definitions/vehicle_event"
}
},
"propulsion_type": {
"$id": "#/definitions/propulsion_type",
"type": "string",
"description": "The type of propulsion",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
},
"propulsion_types": {
"$id": "#/definitions/propulsion_types",
"type": "array",
"description": "The type of propulsion; allows multiple values",
"description": "Array of propulsion types, allowing multiple values",
"items": {
"type": "string",
"enum": [
"combustion",
"electric",
"electric_assist",
"human"
]
"$id": "#/definitions/propulsion_types/items",
"$ref": "#/definitions/propulsion_type"
},
"uniqueItems": true,
"minItems": 1
"uniqueItems": true
},
"vehicle_type": {
"$id": "#/definitions/vehicle_type",
Expand Down Expand Up @@ -340,7 +345,8 @@
"propulsion_types": {
"$id": "#/definitions/vehicle/properties/propulsion_types",
"$ref": "#/definitions/propulsion_types",
"description": "The type of propulsion; allows multiple values"
"description": "The type of propulsion; allows multiple values",
"minItems": 1
},
"last_event_time": {
"$id": "#/properties/data/properties/vehicles/items/properties/last_event_time",
Expand Down

0 comments on commit f9727e3

Please sign in to comment.