gtfs-validator icon indicating copy to clipboard operation
gtfs-validator copied to clipboard

from_stop_id and to_stop_id not required for transfer_type 4 & 5

Open brodyFlannigan opened this issue 1 year ago • 1 comments

Describe the bug

Hi!

The GTFS specification does not explicitly require that from_stop_id and to_stop_id be provided for records in transfers.txt with a transfer_type of 4 or 5. However, the validator reports a missing_required_field error if these two fields are not provided.

Steps/Code to Reproduce

Using the online GTFS validator, validate this file: transcollines-qc-ca-fares-transfers.zip

(Ignore the other errors about translations and shape distances, those are known and being worked on)

Expected Results

Validator should not report a missing_required_field error if from_stop_id and to_stop_id are not provided in transfers.txt if transfer_type = 4 or 5

Actual Results

Validator returns a missing_required_field error if from_stop_id and to_stop_id are not provided in transfers.txt if transfer_type = 4 or 5

Screenshots

No response

Files used

transcollines-qc-ca-fares-transfers.zip

(Ignore other errors about translations and shape distances, those are known and are being worked on)

Validator version

4.2.1-SNAPSHOT

Operating system

(Web version of validator)

Java version

No response

Additional notes

No response

brodyFlannigan avatar Dec 11 '23 13:12 brodyFlannigan

Thanks for opening your first issue in this project! If you haven't already, you can join our slack and join the #gtfs-validators channel to meet our awesome community. Come say hi :wave:!

Welcome to the community and thank you for your engagement in open source! :tada:

welcome[bot] avatar Dec 11 '23 13:12 welcome[bot]

Hi @brodyFlannigan, thanks for your contribution. PR #1772 addresses this issue. There is also a great discussion (google/transit#455) regarding clarifying the rule in the spec. We plan to have this fix in the next release(date TBD, sometime this summer). Please feel free to look over the PR and add your comments.

davidgamez avatar May 27 '24 18:05 davidgamez