-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update timestamp desc to unix timestamp milliseconds #138
Changes from 5 commits
5e8392e
66df505
50fff71
b2a0fe2
14eebc2
f65a63e
cf952fc
c503199
5d738b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,9 +97,10 @@ | |
}, | ||
"timestamp": { | ||
"$id": "#/definitions/timestamp", | ||
"title": "Floating-point seconds since Unix epoch", | ||
"title": "Integer seconds since Unix epoch", | ||
"type": "number", | ||
"minimum": 0.0 | ||
"multiple_of": 1.0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the keyword is |
||
"minimum": 1483228800 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a good idea to enforce via the schema? What about a process that generates fake data, shouldn't it be allowed to generate data across whatever time series it wants? If MDS gets back-ported to TNCs and other related types of shared mobility, this could hamstring the ability to get historic data. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that fair, I'm gonna say let's not enforce via schema but some sort of "truth-yness" validator. |
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,19 @@ | |
"properties": { | ||
"type": { | ||
"type": "string", | ||
"emum": [ | ||
"enum": [ | ||
"Feature" | ||
] | ||
}, | ||
"properties": { | ||
"type": "object", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
], | ||
"required": [ | ||
"timestamp" | ||
], | ||
|
@@ -139,9 +146,10 @@ | |
}, | ||
"timestamp": { | ||
"$id": "#/definitions/timestamp", | ||
"title": "Floating-point seconds since Unix epoch", | ||
"title": "Integer seconds since Unix epoch", | ||
"type": "number", | ||
"minimum": 0.0 | ||
"multiple_of": 1.0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"minimum": 1483228800 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above. |
||
}, | ||
"vehicle_type": { | ||
"$id": "#/definitions/vehicle_type", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,19 @@ | |
"properties": { | ||
"type": { | ||
"type": "string", | ||
"emum": [ | ||
"enum": [ | ||
"Feature" | ||
] | ||
}, | ||
"properties": { | ||
"type": "object", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use array for |
||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
], | ||
"required": [ | ||
"timestamp" | ||
], | ||
|
@@ -85,7 +92,7 @@ | |
"properties": { | ||
"type": { | ||
"type": "string", | ||
"emum": [ | ||
"enum": [ | ||
"FeatureCollection" | ||
] | ||
}, | ||
|
@@ -170,9 +177,10 @@ | |
}, | ||
"timestamp": { | ||
"$id": "#/definitions/timestamp", | ||
"title": "Floating-point seconds since Unix epoch", | ||
"title": "Integer seconds since Unix epoch", | ||
"type": "number", | ||
"minimum": 0.0 | ||
"multiple_of": 1.0, | ||
hunterowens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"minimum": 1483228800 | ||
hunterowens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
"vehicle_type": { | ||
"$id": "#/definitions/vehicle_type", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seconds
->milliseconds