{"id":33044424,"url":"https://github.com/TransitApp/gtfs-fares-v2-validator","last_synced_at":"2025-11-16T20:01:48.205Z","repository":{"id":37797528,"uuid":"386321815","full_name":"TransitApp/gtfs-fares-v2-validator","owner":"TransitApp","description":"Validates GTFS fares-v2 datasets","archived":true,"fork":false,"pushed_at":"2025-03-31T15:18:22.000Z","size":102,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-09T00:36:00.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TransitApp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-07-15T14:36:35.000Z","updated_at":"2025-03-31T15:18:34.000Z","dependencies_parsed_at":"2025-04-20T10:52:09.300Z","dependency_job_id":null,"html_url":"https://github.com/TransitApp/gtfs-fares-v2-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TransitApp/gtfs-fares-v2-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TransitApp%2Fgtfs-fares-v2-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TransitApp%2Fgtfs-fares-v2-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TransitApp%2Fgtfs-fares-v2-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TransitApp%2Fgtfs-fares-v2-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TransitApp","download_url":"https://codeload.github.com/TransitApp/gtfs-fares-v2-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TransitApp%2Fgtfs-fares-v2-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767947,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-14T00:00:28.414Z","updated_at":"2025-11-16T20:01:48.199Z","avatar_url":"https://github.com/TransitApp.png","language":"Python","funding_links":[],"categories":["Producing Data","Uncategorized"],"sub_categories":["GTFS","Uncategorized"],"readme":"# Fares have been added to the MobilityData validator, you should use this instead\n### https://github.com/MobilityData/gtfs-validator\n\n--------------\n# gtfs-fares-v2-validator\n\nThis is a tool to validate fares-v2 GTFS datasets.\n\nValidates ONLY fares-v2 specific files and dependent files, and does NOT validate GTFS schedule data.\n\nProvides validation towards two versions of the fares-v2 specifications:\n  1. \\[Default\\] fares-v2 files in the official GTFS [specification](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md)\n  2. \\[Through `-e` flag\\] the official specification above, as well as additional fields (\"experimental\" fields) defined in the GTFS fares-v2 draft document, with some [exceptions](#unsupported-experimental-fields-and-files-subject-to-change). Also includes some [fields](#additional-experimental-fields) used internally at Transit, and which are either current or upcoming proposals to the official specification.\n\nRunning the tool with the -e flag provides validation for experimental features, and notices pertaining to experimental features are clearly marked as such.\n\n## Requirements\n\npython 3\n\n## Validate a fares dataset\n\n`python3 validate.py PATH-TO-FOLDER-CONTAINING-FARES-V2-DATASET [-o, --output-file FILE-TO-EXPORT-VALIDATION-REPORT-TO] [-e, --experimental]`\n\nFor example:\n\n`python3 validate.py ~/data/my-fares-v2-dataset -o report.txt`\n\n## Run tests\n\n```\npython3 -m pip install pytest\npytest\n```\n\n## Unsupported experimental fields and files (subject to change)\n\n- `fare_capping.txt`: unsupported file. All `fare_capping` references in other files are also unsupported.\n- `fare_products.txt`: `service_id`, all `timeframe` fields\n- `fare_transfer_rules.txt`: `transfer_id`, `transfer_sequence`\n\n## Discontinued experimental fields\n\n- `fare_leg_rules.txt`: `contains_area_id`, all `amount` fields, `currency`\n- `fare_transfer_rules.txt`: all `amount` fields, `currency`,\n\nAmount and currency on these two files have been replaced by the usage of fare products to specify cost.\n\n## Additional experimental fields\n\n- `fare_leg_rules.txt`\n  - `transfer_only`: specifies that a fare leg rule may only be used at the back-end of a transfer\n- `fare_transfer_rules.txt`\n  - `filter_fare_product_id`: a fare product necessary to have in order for a transfer to be valid. Does not encode the `cost` of a transfer, as `fare_product_id` does.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTransitApp%2Fgtfs-fares-v2-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTransitApp%2Fgtfs-fares-v2-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTransitApp%2Fgtfs-fares-v2-validator/lists"}