Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simon-20 opened this issue Mar 1, 2024 · 0 comments

Comments

@simon-20
Copy link
Contributor

simon-20 commented Mar 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant