Skip to content

Commit ba5f1e7

Browse files
author
Antoine LAURENT
committed
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.
1 parent d031423 commit ba5f1e7

12 files changed

Lines changed: 12 additions & 12 deletions

agency/get_stops.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"type": "number",
157157
"description": "Integer milliseconds since Unix epoch",
158158
"multipleOf": 1.0,
159-
"minimum": 0
159+
"minimum": 1514764800000
160160
},
161161
"uuid": {
162162
"$id": "#/definitions/uuid",

agency/get_vehicle.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"type": "number",
3131
"description": "Integer milliseconds since Unix epoch",
3232
"multipleOf": 1.0,
33-
"minimum": 0
33+
"minimum": 1514764800000
3434
},
3535
"vehicle_type": {
3636
"$id": "#/definitions/vehicle_type",

agency/post_stops.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"type": "number",
157157
"description": "Integer milliseconds since Unix epoch",
158158
"multipleOf": 1.0,
159-
"minimum": 0
159+
"minimum": 1514764800000
160160
},
161161
"uuid": {
162162
"$id": "#/definitions/uuid",

agency/post_vehicle_event.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"type": "number",
8181
"description": "Integer milliseconds since Unix epoch",
8282
"multipleOf": 1.0,
83-
"minimum": 0
83+
"minimum": 1514764800000
8484
},
8585
"uuid": {
8686
"$id": "#/definitions/uuid",

agency/post_vehicle_telemetry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"type": "number",
8181
"description": "Integer milliseconds since Unix epoch",
8282
"multipleOf": 1.0,
83-
"minimum": 0
83+
"minimum": 1514764800000
8484
},
8585
"uuid": {
8686
"$id": "#/definitions/uuid",

policy/policy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
"type": "number",
378378
"description": "Integer milliseconds since Unix epoch",
379379
"multipleOf": 1.0,
380-
"minimum": 0
380+
"minimum": 1514764800000
381381
},
382382
"uuid": {
383383
"$id": "#/definitions/uuid",

provider/events.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "number",
2121
"description": "Integer milliseconds since Unix epoch",
2222
"multipleOf": 1.0,
23-
"minimum": 0
23+
"minimum": 1514764800000
2424
},
2525
"uuid": {
2626
"$id": "#/definitions/uuid",

provider/status_changes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "number",
2121
"description": "Integer milliseconds since Unix epoch",
2222
"multipleOf": 1.0,
23-
"minimum": 0
23+
"minimum": 1514764800000
2424
},
2525
"uuid": {
2626
"$id": "#/definitions/uuid",

provider/stops.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "number",
2121
"description": "Integer milliseconds since Unix epoch",
2222
"multipleOf": 1.0,
23-
"minimum": 0
23+
"minimum": 1514764800000
2424
},
2525
"uuid": {
2626
"$id": "#/definitions/uuid",

provider/trips.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"type": "number",
2121
"description": "Integer milliseconds since Unix epoch",
2222
"multipleOf": 1.0,
23-
"minimum": 0
23+
"minimum": 1514764800000
2424
},
2525
"uuid": {
2626
"$id": "#/definitions/uuid",

0 commit comments

Comments
 (0)