From ba5f1e77ecd353b7ec8f1896f8ad17246129202b Mon Sep 17 00:00:00 2001 From: Antoine LAURENT Date: Thu, 27 May 2021 10:18:18 +0200 Subject: [PATCH] Add minimal value to all timestamp json definition The goal is to prevent the easy to make mistake of using a second timestamp instead of a millisecond timestamp. --- agency/get_stops.json | 2 +- agency/get_vehicle.json | 2 +- agency/post_stops.json | 2 +- agency/post_vehicle_event.json | 2 +- agency/post_vehicle_telemetry.json | 2 +- policy/policy.json | 2 +- provider/events.json | 2 +- provider/status_changes.json | 2 +- provider/stops.json | 2 +- provider/trips.json | 2 +- provider/vehicles.json | 2 +- schema/templates/common.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/agency/get_stops.json b/agency/get_stops.json index f40271cd..120904ec 100644 --- a/agency/get_stops.json +++ b/agency/get_stops.json @@ -156,7 +156,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/agency/get_vehicle.json b/agency/get_vehicle.json index ff843457..2358166b 100644 --- a/agency/get_vehicle.json +++ b/agency/get_vehicle.json @@ -30,7 +30,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "vehicle_type": { "$id": "#/definitions/vehicle_type", diff --git a/agency/post_stops.json b/agency/post_stops.json index 75dd4662..8cc77041 100644 --- a/agency/post_stops.json +++ b/agency/post_stops.json @@ -156,7 +156,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/agency/post_vehicle_event.json b/agency/post_vehicle_event.json index 4ee2011e..49d5eff9 100644 --- a/agency/post_vehicle_event.json +++ b/agency/post_vehicle_event.json @@ -80,7 +80,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/agency/post_vehicle_telemetry.json b/agency/post_vehicle_telemetry.json index 36040b8b..8c2d3821 100644 --- a/agency/post_vehicle_telemetry.json +++ b/agency/post_vehicle_telemetry.json @@ -80,7 +80,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/policy/policy.json b/policy/policy.json index a6e9542a..988054ad 100644 --- a/policy/policy.json +++ b/policy/policy.json @@ -377,7 +377,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/provider/events.json b/provider/events.json index 23648e83..1ab51d94 100644 --- a/provider/events.json +++ b/provider/events.json @@ -20,7 +20,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/provider/status_changes.json b/provider/status_changes.json index ed55a1d5..e1f3f282 100644 --- a/provider/status_changes.json +++ b/provider/status_changes.json @@ -20,7 +20,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/provider/stops.json b/provider/stops.json index eb0cfbc5..dece9088 100644 --- a/provider/stops.json +++ b/provider/stops.json @@ -20,7 +20,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/provider/trips.json b/provider/trips.json index c37bf9ba..029ef859 100644 --- a/provider/trips.json +++ b/provider/trips.json @@ -20,7 +20,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/provider/vehicles.json b/provider/vehicles.json index f67ee32c..f5ff65fe 100644 --- a/provider/vehicles.json +++ b/provider/vehicles.json @@ -20,7 +20,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "uuid": { "$id": "#/definitions/uuid", diff --git a/schema/templates/common.json b/schema/templates/common.json index 9efac4cf..33f29cc1 100644 --- a/schema/templates/common.json +++ b/schema/templates/common.json @@ -380,7 +380,7 @@ "type": "number", "description": "Integer milliseconds since Unix epoch", "multipleOf": 1.0, - "minimum": 0 + "minimum": 1514764800000 }, "trip_id_reference": { "description": "Conditionally require a trip_id reference",