Added
- Support for schema version 0.2.
If no meta information is in the data, 0.1 is assumed and work happens as before.
- Add new schema_version key for reporting https://github.com/openownership/lib-cove-bods/issues/28
- The options in count_ownership_or_control_statement_interest_statement_types are different in schema 0.1 and 0.2
- Statistic: Count of current ownership/control statements
- Statistic: Count of ownership-or-control statements by year
- Statistic: Count of subjects of ownership-or-control statements by year
- Statistic: Count of different kinds of interested parties by year
- Improve validation error messages (including oneOf)
- https://github.com/openownership/cove-bods/issues/16
- https://github.com/openownership/lib-cove-bods/pull/5
- This adds translation issues, human messages and a requirement for Django; it was not intended that these should be in this library but as discussed in the pull request we added it hopefully temporarily.
- Statistic: hasPepStatus (0.2 only) https://github.com/openownership/lib-cove-bods/issues/29
- Statistic: pepStatusDetails.missingInfoReason (0.2 only) https://github.com/openownership/lib-cove-bods/issues/30
- Additional Check: inconsistent bodsVersion https://github.com/openownership/lib-cove-bods/issues/27
- Additional Check: address types (0.2 only) https://github.com/openownership/lib-cove-bods/issues/22
- Additional Check: ownership_or_control_statement has is_compontent and component_statement_ids (0.2 only) https://github.com/openownership/lib-cove-bods/issues/26
- Additional Check: component_statement_id not in package (0.2 only) https://github.com/openownership/lib-cove-bods/issues/25
- Additional Check: statement_is_component_but_not_used_in_component_statement_ids and statement_is_component_but_is_after_use_in_component_statement_id (0.2 only)
- https://github.com/openownership/lib-cove-bods/issues/24
- https://github.com/openownership/lib-cove-bods/issues/23
- Statistic: Addresses, with country, with postcode, with postcode in address https://github.com/openownership/lib-cove-bods/issues/16
Changed
- get_statistics() function becomes GetStatistics class, like the RunAdditionalChecks class