GFDRR / rdl-standard

The Risk Data Library Standard (RDLS) is an open data standard to make it easier to work with disaster and climate risk data. It provides a common description of the data used and produced in risk assessments, including hazard, exposure, vulnerability, and modelled loss, or impact, data.
https://docs.riskdatalibrary.org/
Creative Commons Attribution Share Alike 4.0 International
16 stars 1 forks source link

Tests: Add a check to validate required properties #231

Open duncandewhurst opened 1 year ago

duncandewhurst commented 1 year ago

Since RDLS makes fairly extensive use of required properties, we're often finding that they are not kept in sync with changes to property names so it would be helpful to include this in the schema tests. Otherwise, there's a risk of the schema requiring users to add undocumented properties in order for their data to be valid.

I think the best place to implement the check is as a part of the JSCC library that we're using for testing so I've opened an issue there: https://github.com/open-contracting/jscc/issues/12