Skip to content

Wrong fieldName in missing_recommanded_field notice #1574

@jcpitre

Description

@jcpitre

Describe the bug

Ran the validator with a deliberate error: I removed the agency_id from the line in agency.txt.
It gave the right notice but the fieldName read "Avalon Transit" where we would expect something like: "agency_id"

Steps/Code to Reproduce

Use this dataset with the web validator:
test.zip

Unfortunately the version info we have is 4.1.1-SNAPSHOT (BTW the production web validator should have a release version number)

Expected Results

"agency_id" as the firld name

Actual Results

"Avalon Transit" as the field name

Screenshots

image

Files used

No response

Validator version

4.1.1-SNAPSHOT

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)good first issueGood task for newcomers to work on.status: ReadyAn issue that is ready to be worked on.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions