Skip to content

The Validator fails to provide line number and column number information for some Ruleset test failures #545

@simon-20

Description

@simon-20

Brief Description
Note that this issue does not appear to be unrelated to the limitation described in the README, which concerns schema validation for files with more than 65535 lines.

The issue here is that, even for activities in the first 100 lines of a given file, line and column number information routinely fails to be provided for some test failures.

We get JSON response such as:

            {
              "id": "9.52.1",
              "severity": "error",
              "message": "The recipient region vocabulary is invalid.",
              "codelist": "RegionVocabulary",
              "context": [
                {
                  "text": "\"\" is not a valid value for attribute @vocabulary, in element <recipient-region>"
                }
              ],
              "details": {
                "xpath": "//iati-activity/recipient-region/@vocabulary"
              }
            }

This is tied to an activity, but still since there may be multiple recipient-regions, that is of only limited help.

To see the issue as it manifests on the Validator website, see this report:

https://validator.iatistandard.org/report/unicef-chile

Under the Financial group of errors, there are multiple reports of budget status being invalid, but no line or column information is given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions