IATI/IATI-Standard-SSOT

BUG: `@value-date` is shown as optional in the summary table, but isn’t

andylolz opened this issue · 3 comments

This summary table shows @value-date as optional (i.e. 0..1 in the “Occur” column.) However, it isn’t (when tested using the public validatior / pyIATI).

It’s being shown as optional because there’s no use attribute here:
https://github.com/IATI/IATI-Schemas/blob/a96c582f2f6873aa46b42df2d24d69f3128b24e4/iati-common.xsd#L132

The code should be looking for the use attribute here as well:
https://github.com/IATI/IATI-Schemas/blob/a96c582f2f6873aa46b42df2d24d69f3128b24e4/iati-activities-schema.xsd#L2507

…but it isn’t. So this again relates to the reference site not parsing the XSD correctly, and therefore information not bubbling up correctly. In that sense, this is similar to #212.

This issue was originally raised by @VincentVW on IATI discuss.

This looks fixed for the deployed v2.03, but is not fixed for other deployed versions.

Okay, looks like this fix has now been deployed (and is fixed) for all versions 👍