feat: Validation for conditionally required/forbidden fare_rules.txt file.#1261
feat: Validation for conditionally required/forbidden fare_rules.txt file.#1261bdferris-v2 wants to merge 5 commits intoMobilityData:masterfrom
fare_rules.txt file.#1261Conversation
….txt` file, per Fares v2 spec update.
|
@isabelle-dr per discussion, here is a separate PR for the Fares v1 file checks. |
main/src/main/java/org/mobilitydata/gtfsvalidator/validator/FaresV1FileValidator.java
Show resolved
Hide resolved
isabelle-dr
left a comment
There was a problem hiding this comment.
2 minor changes in line.
Can you resolve the merge conflicts?
Then, I'll merge this PR!
|
@merge conflicts have been resolved |
|
Pasting this in manually: ❌ Invalid acceptance test. I was curious what this was going to trigger. Taking a closer look. |
|
Isn't having |
|
I'm a little confused by the change to the spec as well. Looking back at the original Fares V1 example documentation (not really hosted anywhere anymore, but available at https://web.archive.org/web/20111207224351/https://code.google.com/p/googletransitdatafeed/wiki/FareExamples), having a And indeed, when I look through the acceptance report for this change, there are 62 feeds in the MobilityDatabase that have a That said, there are also 11 feeds where I'm tempted to say "pause" on this PR and get some feedback from the #gtfs-fares group before proceeding. |
|
@bdferris-v2 I am closing this since we decided to modify the spec and not the validator for this one. |
Summary:
Per updates introduced in the Fares v2 spec addition, we now check for the conditionally required/forbidden
fare_rules.txtfile.Please make sure these boxes are checked before submitting your pull request - thanks!
gradle testto make sure you didn't break anything