Skip to content

Translations.txt value mismatch not being recognized #1374

@westontrillium

Description

@westontrillium

Describe the bug

I'm not sure if this is a bug or just a missing validation rule. No validation error results from either field_name referencing a value that doesn't exist or field_value referencing a value that doesn't exist.

Example

routes.txt
...,route_short_name,...
...,45,...

translations.txt
...,field_value,...
...,4r,...

^ Validator does not detect that "4r" is not present under routes.route_short_name.

or

...,field_name,...
...,rt_shortname,...

^ Validator does not detect that rt_shortname is not present in routes.txt.

or

...,field_name,...,field_value,
...,route_long_name,...,45,

^ Validator does not detect that 45 is not under ,route_long_name,.

Steps/Code to Reproduce

cctbus-mn-usTEST.zip

  1. Use the above dataset.
  2. Notice errors in the first two records of translations.txt (route_short_name instead of route_long_name for the first record, incorrect field_value for the second record).
  3. Run the dataset on GTFS Validator.
  4. Notice no error message about the two errors.

Expected Results

The Validator should detect these errors and produce an error message for each.

Actual Results

No detection, no error message for either.

Screenshots

No response

Files used

No response

Validator version

4.0.0

Operating system

MacOS

Java version

No response

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working (crash, a rule has a problem)status: ReadyAn issue that is ready to be worked on.

    Type

    No type

    Projects

    Status

    Requires investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions