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 25 forks source link

Add dependency reservation_price fields mutually exclusive #125

Closed richfab closed 4 months ago

richfab commented 4 months ago

Context

v3.1-RC adds plans[].reservation_price_per_min and plans[].reservation_price_flat_rate.

The says that the two fields are mutually exclusive (source):

This field MUST NOT be combined in a single pricing plan with reservation_price_per_min.

What's Changed

A dependency was added to make plans[].reservation_price_per_min and plans[].reservation_price_flat_rate mutually exclusive.

This means that either reservation_price_flat_rate OR reservation_price_per_min is present in the same pricing plan but not both of them together.