Skip to content

Commit

Permalink
Add minimal value to all timestamp json definition
Browse files Browse the repository at this point in the history
The goal is to prevent the easy to make mistake of using a second
timestamp instead of a millisecond timestamp.
  • Loading branch information
Antoine LAURENT committed May 27, 2021
1 parent d031423 commit ba5f1e7
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion agency/get_stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion agency/get_vehicle.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion agency/post_stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion agency/post_vehicle_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion agency/post_vehicle_telemetry.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion policy/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion provider/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion provider/status_changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion provider/stops.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion provider/trips.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion provider/vehicles.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"type": "number",
"description": "Integer milliseconds since Unix epoch",
"multipleOf": 1.0,
"minimum": 0
"minimum": 1514764800000
},
"uuid": {
"$id": "#/definitions/uuid",
Expand Down
2 changes: 1 addition & 1 deletion schema/templates/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ba5f1e7

Please sign in to comment.