Skip to content

Commit

Permalink
regenerate the schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Oct 20, 2018
1 parent db1faf7 commit 594ae15
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
16 changes: 9 additions & 7 deletions provider/status_changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,8 @@
},
"event_time": {
"$id": "#/properties/data/properties/status_changes/items/properties/event_time",
"type": "number",
"description": "The time the event occurred, expressed as a Unix Timestamp",
"default": 0.0,
"examples": [
1529968782.421409
]
"$ref": "#/definitions/timestamp"
},
"event_location": {
"$id": "#/properties/data/properties/status_changes/items/properties/event_location",
Expand All @@ -353,7 +349,10 @@
},
"battery_pct": {
"$id": "#/properties/data/properties/status_changes/items/properties/battery_pct",
"type": ["number", "null"],
"type": [
"number",
"null"
],
"description": "Percent charge of device battery, expressed between 0 and 1",
"examples": [
0.89
Expand All @@ -363,7 +362,10 @@
},
"associated_trips": {
"$id": "#/properties/data/properties/status_changes/items/properties/associated_trips",
"type": ["array", "null"],
"type": [
"array",
"null"
],
"description": "For 'Reserved' event types, associated trip_ids",
"items": {
"$id": "#/properties/data/properties/status_changes/items/properties/associated_trips/items",
Expand Down
27 changes: 14 additions & 13 deletions provider/trips.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,25 +330,20 @@
},
"start_time": {
"$id": "#/properties/data/properties/trips/items/properties/start_time",
"type": "number",
"description": "The time the trip began, expressed as a Unix Timestamp",
"default": 0.0,
"examples": [
1529968782.421409
]
"$ref": "#/definitions/timestamp"
},
"end_time": {
"$id": "#/properties/data/properties/trips/items/properties/end_time",
"type": "number",
"description": "The time the trip ended, expressed as a Unix Timestamp",
"default": 0.0,
"examples": [
1531007628.3774529
]
"$ref": "#/definitions/timestamp"
},
"parking_verification_url": {
"$id": "#/properties/data/properties/trips/items/properties/parking_verification_url",
"type": ["string", "null"],
"type": [
"string",
"null"
],
"description": "A URL to a photo (or other evidence) of proper vehicle parking",
"examples": [
"https://data.provider.co/parking_verify/1234.jpg"
Expand All @@ -357,15 +352,21 @@
},
"standard_cost": {
"$id": "#/properties/data/properties/trips/items/properties/standard_cost",
"type": ["integer", "null"],
"type": [
"integer",
"null"
],
"description": "The cost, in cents, that it would cost to perform the trip in the standard operation of the System",
"examples": [
500
]
},
"actual_cost": {
"$id": "#/properties/data/properties/trips/items/properties/actual_cost",
"type": ["integer", "null"],
"type": [
"integer",
"null"
],
"description": "The actual cost, in cents, paid by the customer of the mobility as a service provider",
"examples": [
520
Expand Down

0 comments on commit 594ae15

Please sign in to comment.