MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
290 stars 101 forks source link

Modify fare_transfer_rule_with_forbidden_transfer_count so leg_group_id fields can be empty #1873

Open emmambd opened 1 month ago

emmambd commented 1 month ago

Describe the problem

Currently, FareTransferRuleWithForbiddenTransferCountNotice triggers when both from_leg_group_id and to_leg_group_id are empty and transfer_count exists.

According to the spec, it should be ok to have transfer_count when from_leg_group_id and to_leg_group_id are empty.

Proposed solution

Modify fare_transfer_rule_with_forbidden_transfer_count so from_leg_group_id and to_leg_group_id can be empty when transfer count exists.

Alternatives you've considered

No response

Additional context

No response