MobilityData / gbfs-json-schema

JSON Schema for GBFS feeds, managed by MobilityData. The versions are organized by folders. CC BY 4.0
Apache License 2.0
23 stars 24 forks source link

Allow vehicle_types_available to be empty #93

Closed richfab closed 11 months ago

richfab commented 11 months ago

Problem

In this Slack thread, @hbruch has spotted a mismatch between the specs and the JSON-Schema:

This causes a problem when a station has 0 vehicle available, like in the feed sample below:

Before After
Screenshot 2023-08-01 at 15 54 39 Screenshot 2023-08-01 at 15 56 07

Suggested solution

@testower suggested to remove the "minItems": 1 constraint on vehicle_types_available in https://github.com/MobilityData/gbfs-json-schema/blob/master/v3.0-RC/station_status.json#L53.

@richfab will submit a PR.