Only warn if feed_contact_email or url are both unset. #1423
Labels
bug
Something isn't working (crash, a rule has a problem)
good first issue
Good task for newcomers to work on.
status: Work in progress
A PR that would close this issue has been opened.
Describe the bug
Best Practice recommends that at least one of
feed_contact_email
andfeed_contact_url
be provided infeed_info.txt
.https://gtfs.org/schedule/best-practices/#feed_infotxt
However, Validator raise a
missing_recommended_field
warning if either the email or the url is not provided.Steps/Code to Reproduce
Validate test feed.
https://github.com/MobilityData/gtfs-validator/files/11365074/akocity_with_email.zip
Tested version: 4.0.0
Expected Results
No
missing_recommended_field
warning.It is inappropriate to recommend that both be set, since some agencies only publish either an email address or a web form as their contact information.
Actual Results
A "missing_recommended_field" raised as follows
Screenshots
No response
Files used
akocity_with_email.zip
Validator version
4.0.0
Operating system
Windows
Java version
No response
Additional notes
Warnings for missing recommended fields in
feed_info.txt
was requested. #885In response to that request, the recommended annotation feature (#1149) and the
missing_recommended_field
warning (#1157) were added.At that time, recommended annotations were added to
feed_contact_email
andfeed_contact_url
, so that each is checked independently. #1156It would be better to remove the recommended annotations for
feed_contact_email
andfeed_contact_url
and then add a check that at least one of them is set.The text was updated successfully, but these errors were encountered: