younginnovations / aidstream

AidStream is a platform for small and medium size NGOs to publish their aid data in IATI standard.
http://aidstream.org
MIT License
20 stars 13 forks source link

Missing rule - provider/receiver name or ref must be provided #315

Open amy-silcock opened 4 years ago

amy-silcock commented 4 years ago

Hi AidStream,

There's a missing rule which occurs twice in the <transaction> and <planned-disbursement> elements. It occurs for both <receiver-org> and <provider-org>.

The rule is found for @ref attribute:

Machine-readable identification string for the organisation issuing the report. Must be in the format {RegistrationAgency}-{RegistrationNumber} where {RegistrationAgency} is a valid code in the Organisation Registration Agency code list and {RegistrationNumber} is a valid identifier issued by the {RegistrationAgency}. If this is not present then the narrative MUST contain the name of the organisation.

This value must be of type xsd:string.

Either transaction/provider-org/@ref or transaction/provider-org/narrative must be present.

transaction/provider-org/@ref should match the regex [^\/\&\|\?]+

Either @ref or narrative must be present.

IF a <provider-org> or a <receiver-org> element gets published. Then the element must contain either the @ref attribute or the <narrative> element.

See: http://reference.iatistandard.org/203/activity-standard/iati-activities/iati-activity/transaction/provider-org/

Please could this be added?