Closed hbruch closed 8 months ago
Hello @hbruch,
I'm sorry for the delay. Thank you very much for this contribution! We all understand the importance of having an accurate JSON Schema.
Based on the GBFS spec definition:
Datetime (added in v2.3)- Combination of a date and a time following ISO 8601 notation. Attributes : year, month, day, hour, minute, second, and timezone.
- I agree that the JSON-Schema should allow for the timezone to be included in
free_bike_status.available_until
.- I would recommend not allowing the milliseconds, to match the spec definition and because this level of precision is most likely not needed.
Please let me know:
Thank you! Fabien
Hi @hbruch, Just to let you know that we have updated the JSON Schemas (v2.3 and v3.0-RC) to allow timezones. Thank you for your contribution. Have a great!
The current datetime regex for
free_bike_status.available_until
does neither support numeric offsets, nor milliseconds (not that this precision would be required but...).As https://github.com/MobilityData/gbfs/pull/522 plans to introduce RFC3339 as timestamp format, the regex will surely be revised, but even now, I suggest to expand it to this stack overflow suggestion by Brock Adams: