Skip to content

Fix parsing of GBFS feeds - #5891

Merged
leonardehrenfried merged 2 commits into
opentripplanner:dev-2.xfrom
entur:upgrade/gbfs-model
Jun 7, 2024
Merged

Fix parsing of GBFS feeds#5891
leonardehrenfried merged 2 commits into
opentripplanner:dev-2.xfrom
entur:upgrade/gbfs-model

Conversation

@testower

@testower testower commented Jun 4, 2024

Copy link
Copy Markdown
Contributor

Summary

When the GBFS model moved to MobilityData an inadvertent change was made to the implementing class mapper, so gbfs.json pointed to the generated class for v2.3, which does not work. The upgrade includes MobilityData/gbfs-json-schema#129 which reverts to the original behavior of mapping to the hand-written class.

Issue

Closes #5889

Unit tests

Test case courtesy of @leonardehrenfried (ibi-group@ff938e3)

@testower
testower requested a review from a team as a code owner June 4, 2024 16:10
@leonardehrenfried leonardehrenfried changed the title Upgrade/gbfs model Fix parsing of GBFS feeds Jun 4, 2024
@leonardehrenfried leonardehrenfried added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Jun 4, 2024
@leonardehrenfried
leonardehrenfried merged commit 96789a6 into opentripplanner:dev-2.x Jun 7, 2024
t2gran pushed a commit that referenced this pull request Jun 7, 2024
@t2gran t2gran added this to the 2.6 (next release) milestone Jul 23, 2024
@t2gran
t2gran deleted the upgrade/gbfs-model branch January 30, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GBFS feeds parse failure when gbfs.json is referencing itself

4 participants