I ran validate.open311.org against
https://api.turku.fi/feedback/v1/requests.json, here is the URL:
http://validate.open311.org/validate?schema=georeport-
v2%2Frequests.json&output=browser&datajson_url=https%3A%
2F%2Fapi.turku.fi%2Ffeedback%2Fv1%2Frequests.json&qa=false
Everything else seems to be ok, but validator whines about timestamp format:
Invalid date-time "2017-02-03T09:44:50.647Z", expected format
YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm
I guess the reason is the fragments of seconds before timezone (Z) info:
"requested_datetime": "2017-02-03T09:44:50.647Z",
Here is the same, in addition timezone (Z) is missing:
"updated_datetime": "2017-02-06T19:58:42.133"
The documentation here
http://wiki.open311.org/GeoReport_v2/#get-service-requests says:
> requested_datetime The date and time when the service request was made.
Returned
> in w3 format, eg 2010-01-01T00:00:00Z
However, W3 here https://www.w3.org/TR/NOTE-datetime says:
The formats are as follows. - -
Complete date plus hours, minutes, seconds and a decimal fraction of a
> second
> YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
I'm wondering:
1) Should The Validator accept those fractions?
2) Or should those fractions be removed from the response?
I vote for #1, because the datetime is in valid w3 format. :)
https://api.turku.fi/feedback/v1/requests.json, here is the URL:
http://validate.open311.org/validate?schema=georeport-
v2%2Frequests.json&output=browser&datajson_url=https%3A%
2F%2Fapi.turku.fi%2Ffeedback%2Fv1%2Frequests.json&qa=false
Everything else seems to be ok, but validator whines about timestamp format:
Invalid date-time "2017-02-03T09:44:50.647Z", expected format
YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm
I guess the reason is the fragments of seconds before timezone (Z) info:
"requested_datetime": "2017-02-03T09:44:50.647Z",
Here is the same, in addition timezone (Z) is missing:
"updated_datetime": "2017-02-06T19:58:42.133"
The documentation here
http://wiki.open311.org/GeoReport_v2/#get-service-requests says:
> requested_datetime The date and time when the service request was made.
Returned
> in w3 format, eg 2010-01-01T00:00:00Z
However, W3 here https://www.w3.org/TR/NOTE-datetime says:
The formats are as follows. - -
Complete date plus hours, minutes, seconds and a decimal fraction of a
> second
> YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
I'm wondering:
1) Should The Validator accept those fractions?
2) Or should those fractions be removed from the response?
I vote for #1, because the datetime is in valid w3 format. :)