feat: new is_official tag for feeds #649
Open
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.
Adding a new optional tag called 'is_official' for feeds as requested in issue #356.
Changes:
schemas/gtfs_realtime_source_schema.json
andschemas/gtfs_schedule_source_schema.json
to include this tag.tools/representations.py
, adding this tag to theSource
class.tools/representations.py
, ahas_is_official
method for theGtfsScheduleSource
andGtfsRealtimeSource
classes and aget_sources_by_is_official
method for theSourcesCatalog
class.tools/tests/test_representations.py
for each new method listed above. All passed locally.get_sources_by_is_official
method intools/operations.py
.tools/tests/test_operations.py
for the new method listed above. Passed locally.README.md
schemas to include this tag.