MobilityData / gtfs-validator

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

Error 55 (language) should be changed from ERROR to WARNING #472

Closed mcplanner-zz closed 3 years ago

mcplanner-zz commented 3 years ago

Describe the bug Error code 55 appears to require that the language in agency.agency_lang matches feed_info.feed_lang. Agency_lang is optional, so this appears to be an erroneous error.

To Reproduce Run the validator on the following dataset: http://api.511.org/transit/datafeeds?api_key=[key]&operator_id=BA

Expected behavior No notice should be generated in this case.

Witnessed behavior This error message was included in the validator results.

Notice{filename='feed_info.txt', level='ERROR', code='55', title='Mismatching feed and agency language fields', description='Agency `agency_name`: `Bay Area Rapid Transit` has mismatching `agency.agency_lang`: `null` and feed_info.feed_lang`: `en`.', extra='{feedInfoFeedLang=en, agencyAgencyLang=null, agencyName=Bay Area Rapid Transit}'}]

Environment used

Additional context None

ghost commented 3 years ago

@Cristhian-HA :

@fabrice-v :

lionel-nj commented 3 years ago

Related issue for v2 architecture in terms of re-introducing the concept of errors vs warnings - #549.

lionel-nj commented 3 years ago

Will be closed by https://github.com/MobilityData/gtfs-validator/pull/726. This has been set to be a WARNING instead of an ERROR.

aababilov commented 3 years ago

This issue is outdated. GTFS Validator does not show any notice in that case after #711