From 594ae15889cf32bd43b71a606e54347d76adde2c Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Fri, 19 Oct 2018 22:47:32 -0700 Subject: [PATCH] regenerate the schemas --- provider/status_changes.json | 16 +++++++++------- provider/trips.json | 27 ++++++++++++++------------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/provider/status_changes.json b/provider/status_changes.json index 3f302c7c..24dffc23 100644 --- a/provider/status_changes.json +++ b/provider/status_changes.json @@ -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", @@ -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 @@ -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", diff --git a/provider/trips.json b/provider/trips.json index fa31431c..9fd6cc46 100644 --- a/provider/trips.json +++ b/provider/trips.json @@ -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" @@ -357,7 +352,10 @@ }, "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 @@ -365,7 +363,10 @@ }, "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