Skip to content

Make vehicle_type_id conditionally required in vehicle_availability.json#845

Merged
richfab merged 1 commit intomasterfrom
fix-vehicle-availability-vehicle-type-id
Apr 13, 2026
Merged

Make vehicle_type_id conditionally required in vehicle_availability.json#845
richfab merged 1 commit intomasterfrom
fix-vehicle-availability-vehicle-type-id

Conversation

@richfab
Copy link
Copy Markdown
Contributor

@richfab richfab commented Apr 13, 2026

Context

vehicle_type_id is currently REQUIRED in vehicle_availability.json. This is a problem for systems agnostic of vehicle_type and that need to implement this endpoint.

What's Changed

vehicle_type_id is now "Conditionally REQUIRED" in vehicle_availability.json (just like in vehicle_status.json).

Is this a breaking change?

  • Yes
  • No
  • Unsure

Which files are affected by this change?

vehicle_availability.json

Thanks @hansmorb at CommonsBooking for raising this issue!

Note: This change does not require a vote because it's a fix on a Release Candidate feature.

@richfab richfab added the v3.1-RC2 Candidate change for v3.1 (minor release) - 2nd pass label Apr 13, 2026
@richfab richfab requested a review from fredericsimard April 13, 2026 09:06
Copy link
Copy Markdown
Contributor

@fredericsimard fredericsimard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@richfab richfab merged commit 2cc5cc4 into master Apr 13, 2026
1 check passed
@richfab richfab deleted the fix-vehicle-availability-vehicle-type-id branch April 13, 2026 13:03
richfab added a commit to MobilityData/gbfs-json-schema that referenced this pull request Apr 14, 2026
### Context
Follow up of MobilityData/gbfs#845

vehicle_type_id became Conditionally REQUIRED in vehicle_availability.json.

### What's Changed
vehicle_type_id is now optional in the JSON schema of vehicle_availability.json.
richfab added a commit to MobilityData/gbfs-json-schema that referenced this pull request Apr 14, 2026
### Context
Follow up of MobilityData/gbfs#845

vehicle_type_id became Conditionally REQUIRED in vehicle_availability.json.

### What's Changed
vehicle_type_id is now optional in the JSON schema of vehicle_availability.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3.1-RC2 Candidate change for v3.1 (minor release) - 2nd pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants