This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Improve help text for validation error err-not-iati-xml-missing-required-element
#250
Labels
enhancement
Some sort of new functionality (rather than fixing or tweaking something that already existed).
error-handling
Relating to error handling.
validation
Changes to validation functionality.
Milestone
In our work to use pyIATI in the test runner for the v2.03 IATI schema work, we test that failing files fail for an expected reason.
The failing file here tests that an non-permitted child element fails schema validation. This creates the following
iati.validator.ValidationError
object:The generated error
err-not-iati-xml-missing-required-element
seems unintuitive given that theinfo
attribute statesElement 'unexpected-element': This element is not expected. Expected is ( ##other* ).
.Is ti worth adding a new mapping to this to generate a new error, for example
err-not-iati-xml-unexpected-element
?The text was updated successfully, but these errors were encountered: