-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add schemas for v2.0 #33
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0ff0b09
Modify schemas for v1.1
e4447ee
Add schemas for v2.0
5f05f77
Merge branch 'master' into v2-0
josee-sabourin 701301a
Update free_bike_status.json per review
c62de26
Merge branch 'v2-0' of https://github.com/MobilityData/gbfs-json-sche…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep all previous valid versions in the enum here, so it should include
1.0
,1.1-RC
,1.1
,v2.0-RC
in addition to2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand why the versions should be included, this schema would not be representative of a v1.0 dataset, can you explain the reasoning to me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it could go either way, depending on how we want to use the schema.
I would thinking primarily in context of generating software to generate, parse or validate feeds from the schema, where you would need to know what the universe of valid version numbers are at a given GBFS version. For example, there should only be breaking schema changes between major versions (e.g., changing booleans from 0/1 to true/false between v1 and v2). So you could use a v1.1 schema to validate, parse and generate a v1.0 feed as well as a v1.1 feed. And if the changes are only semantic (e.g., ID fields must be rotated for floating bikes) and the data types don't change, you could use a single schema (and generated software) to work across multiple major release versions too. So basically it would potentially be less software to maintain for people generating software from the schema.
But you could also make the argument that we want to keep a strict 1:1 mapping between the schema and it's version, so it can only be used for the same version feeds.
Maybe a question for the community and how they plan to use the schemas? In the meantime it's fine if you want to keep it showing only the latest version.