From 81cb89983f2b6046fed09224cd1596da50f0f7f3 Mon Sep 17 00:00:00 2001 From: Fabien Richard-Allouard Date: Fri, 27 Oct 2023 10:35:46 -0400 Subject: [PATCH] Updates available_until regex to allow timezones --- v2.3/free_bike_status.json | 2 +- v3.0-RC/vehicle_status.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2.3/free_bike_status.json b/v2.3/free_bike_status.json index d094f997..25522f62 100644 --- a/v2.3/free_bike_status.json +++ b/v2.3/free_bike_status.json @@ -120,7 +120,7 @@ "available_until": { "description": "The date and time when any rental of the vehicle must be completed. Added in v2.3.", "type": "string", - "pattern": "^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})([A-Z])$" + "pattern": "^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(([+-]([0-9]{2}):([0-9]{2}))|Z)$" } }, "anyOf": [ diff --git a/v3.0-RC/vehicle_status.json b/v3.0-RC/vehicle_status.json index 72f507c3..0675fd39 100644 --- a/v3.0-RC/vehicle_status.json +++ b/v3.0-RC/vehicle_status.json @@ -123,7 +123,7 @@ "available_until": { "description": "The date and time when any rental of the vehicle must be completed. Added in v2.3.", "type": "string", - "pattern": "^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})([A-Z])$" + "pattern": "^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(([+-]([0-9]{2}):([0-9]{2}))|Z)$" } }, "anyOf": [