From 8ea718d3f62f9fc4004d0ac31a6e70c9696c17b0 Mon Sep 17 00:00:00 2001 From: "Ed (ODSC)" Date: Sun, 22 Sep 2024 17:17:53 +0100 Subject: [PATCH] test_schema_validation_0_4.py: Test valid data --- tests/fixtures/0.4/valid-schema/entity.json | 58 ++++++++++++++++++ tests/fixtures/0.4/valid-schema/entity_2.json | 47 +++++++++++++++ .../valid-schema/entity_address_address.json | 20 +++++++ .../valid-schema/entity_address_country.json | 26 ++++++++ .../entity_address_country_2.json | 23 +++++++ .../entity_address_country_no_code.json | 25 ++++++++ .../valid-schema/entity_address_postcode.json | 20 +++++++ .../0.4/valid-schema/entity_address_type.json | 20 +++++++ .../valid-schema/entity_addresses_type.json | 25 ++++++++ .../valid-schema/entity_alternate_names.json | 18 ++++++ .../valid-schema/entity_dissolution_date.json | 16 +++++ .../entity_formed_by_statute.json | 17 ++++++ .../entity_formed_by_statute_date.json | 18 ++++++ .../entity_formed_by_statute_name.json | 18 ++++++ .../valid-schema/entity_founding_date.json | 16 +++++ .../valid-schema/entity_government_body.json | 23 +++++++ .../valid-schema/entity_identifiers_id.json | 21 +++++++ .../entity_identifiers_scheme.json | 20 +++++++ .../entity_identifiers_scheme_name.json | 20 +++++++ .../valid-schema/entity_identifiers_uri.json | 22 +++++++ .../entity_jurisdiction_code.json | 19 ++++++ .../entity_jurisdiction_name.json | 18 ++++++ .../0.4/valid-schema/entity_name.json | 16 +++++ .../0.4/valid-schema/entity_nomination.json | 23 +++++++ .../valid-schema/entity_public_listing.json | 18 ++++++ ...entity_public_listing_company_filings.json | 21 +++++++ .../0.4/valid-schema/entity_security_MIC.json | 28 +++++++++ .../valid-schema/entity_security_OMIC.json | 28 +++++++++ .../0.4/valid-schema/entity_security_id.json | 28 +++++++++ .../entity_security_idscheme.json | 28 +++++++++ .../valid-schema/entity_security_listing.json | 27 +++++++++ .../valid-schema/entity_statementDate.json | 15 +++++ .../entity_statementDate_time.json | 15 +++++ .../entity_trust_legal_entity.json | 23 +++++++ .../0.4/valid-schema/entity_type_details.json | 23 +++++++ ...entity_type_registered_entity_subtype.json | 17 ++++++ .../entity_type_statebody_other.json | 23 +++++++ .../entity_type_trust_arrangement.json | 23 +++++++ ...entity_unspecified_entity_description.json | 19 ++++++ .../entity_unspecified_entity_details.json | 18 ++++++ .../fixtures/0.4/valid-schema/entity_uri.json | 16 +++++ tests/fixtures/0.4/valid-schema/person.json | 53 ++++++++++++++++ tests/fixtures/0.4/valid-schema/person_2.json | 40 +++++++++++++ .../person_PepStatusDetails_endDate.json | 21 +++++++ .../person_PepStatusDetails_jurisdiction.json | 24 ++++++++ ...on_PepStatusDetails_missingInfoReason.json | 21 +++++++ .../person_PepStatusDetails_reason.json | 21 +++++++ .../person_PepStatusDetails_source.json | 25 ++++++++ .../person_PepStatusDetails_startDate.json | 21 +++++++ .../valid-schema/person_addresses_type.json | 23 +++++++ .../0.4/valid-schema/person_birth_date.json | 14 +++++ .../valid-schema/person_birth_date_year.json | 14 +++++ .../person_birth_date_year_month.json | 14 +++++ .../0.4/valid-schema/person_birth_place.json | 21 +++++++ .../valid-schema/person_death_date_full.json | 14 +++++ .../valid-schema/person_death_date_year.json | 14 +++++ .../person_death_date_year_month.json | 14 +++++ .../valid-schema/person_identifiers_id.json | 19 ++++++ .../person_identifiers_scheme.json | 18 ++++++ .../person_identifiers_scheme_name.json | 18 ++++++ .../person_names_family_name.json | 19 ++++++ .../valid-schema/person_names_full_name.json | 18 ++++++ .../valid-schema/person_names_given_name.json | 19 ++++++ .../valid-schema/person_names_patronymic.json | 19 ++++++ .../0.4/valid-schema/person_names_type.json | 19 ++++++ .../person_nationalities_code.json | 19 ++++++ .../person_nationalities_name.json | 18 ++++++ .../person_politicalExposure_object.json | 16 +++++ .../valid-schema/person_taxResidencies.json | 19 ++++++ .../person_unspecified_person_details.json | 16 +++++ .../publication_details_date.json | 22 +++++++ .../publication_details_license.json | 23 +++++++ .../publication_details_publisher_name.json | 22 +++++++ ...ublication_details_publisher_name_url.json | 23 +++++++ .../publication_details_publisher_url.json | 22 +++++++ .../publication_details_version.json | 22 +++++++ .../0.4/valid-schema/record_status.json | 14 +++++ .../0.4/valid-schema/relationship.json | 45 ++++++++++++++ .../0.4/valid-schema/relationship_2.json | 60 +++++++++++++++++++ .../relationship_component_records.json | 19 ++++++ .../relationship_interested_party.json | 14 +++++ ...p_interested_party_unspecified_object.json | 16 +++++ ...rests_beneficial_ownership_or_control.json | 19 ++++++ .../relationship_interests_details.json | 19 ++++++ ...tionship_interests_direct_or_indirect.json | 19 ++++++ .../relationship_interests_end_date.json | 19 ++++++ .../relationship_interests_share.json | 21 +++++++ ...ship_interests_share_exclusive_minmax.json | 22 +++++++ .../relationship_interests_start_date.json | 19 ++++++ .../relationship_interests_type.json | 19 ++++++ .../relationship_is_component_true.json | 15 +++++ .../relationship_is_component_true2.json | 14 +++++ .../valid-schema/relationship_subject.json | 14 +++++ ...lationship_subject_unspecified_object.json | 16 +++++ tests/fixtures/0.4/valid-schema/source.json | 22 +++++++ .../statement_annotations_createdBy.json | 24 ++++++++ .../statement_annotations_createdBy_uri.json | 25 ++++++++ .../statement_annotations_creationDate.json | 22 +++++++ ...atement_annotations_creationDate_time.json | 22 +++++++ .../statement_annotations_description.json | 22 +++++++ ...atement_annotations_empty_transformed.json | 22 +++++++ ...nt_annotations_statementPointerTarget.json | 21 +++++++ ...tement_annotations_transformedContent.json | 22 +++++++ .../statement_annotations_url.json | 22 +++++++ .../statement_annotations_url_linking.json | 22 +++++++ .../statement_source_assertedBy_uri.json | 22 +++++++ .../statement_source_description.json | 18 ++++++ .../statement_source_retrievedAt.json | 18 ++++++ .../statement_source_retrievedAt_time.json | 18 ++++++ .../valid-schema/statement_source_type.json | 20 +++++++ .../valid-schema/statement_source_url.json | 18 ++++++ tests/test_schema_validation_0_4.py | 21 ++++++- 112 files changed, 2408 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/0.4/valid-schema/entity.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_2.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_address.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_country.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_country_2.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_country_no_code.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_postcode.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_address_type.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_addresses_type.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_alternate_names.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_dissolution_date.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_formed_by_statute.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_formed_by_statute_date.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_formed_by_statute_name.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_founding_date.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_government_body.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_identifiers_id.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_identifiers_scheme.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_identifiers_scheme_name.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_identifiers_uri.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_jurisdiction_code.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_jurisdiction_name.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_name.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_nomination.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_public_listing.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_public_listing_company_filings.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_security_MIC.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_security_OMIC.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_security_id.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_security_idscheme.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_security_listing.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_statementDate.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_statementDate_time.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_trust_legal_entity.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_type_details.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_type_registered_entity_subtype.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_type_statebody_other.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_type_trust_arrangement.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_unspecified_entity_description.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_unspecified_entity_details.json create mode 100644 tests/fixtures/0.4/valid-schema/entity_uri.json create mode 100644 tests/fixtures/0.4/valid-schema/person.json create mode 100644 tests/fixtures/0.4/valid-schema/person_2.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_endDate.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_jurisdiction.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_missingInfoReason.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_reason.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_source.json create mode 100644 tests/fixtures/0.4/valid-schema/person_PepStatusDetails_startDate.json create mode 100644 tests/fixtures/0.4/valid-schema/person_addresses_type.json create mode 100644 tests/fixtures/0.4/valid-schema/person_birth_date.json create mode 100644 tests/fixtures/0.4/valid-schema/person_birth_date_year.json create mode 100644 tests/fixtures/0.4/valid-schema/person_birth_date_year_month.json create mode 100644 tests/fixtures/0.4/valid-schema/person_birth_place.json create mode 100644 tests/fixtures/0.4/valid-schema/person_death_date_full.json create mode 100644 tests/fixtures/0.4/valid-schema/person_death_date_year.json create mode 100644 tests/fixtures/0.4/valid-schema/person_death_date_year_month.json create mode 100644 tests/fixtures/0.4/valid-schema/person_identifiers_id.json create mode 100644 tests/fixtures/0.4/valid-schema/person_identifiers_scheme.json create mode 100644 tests/fixtures/0.4/valid-schema/person_identifiers_scheme_name.json create mode 100644 tests/fixtures/0.4/valid-schema/person_names_family_name.json create mode 100644 tests/fixtures/0.4/valid-schema/person_names_full_name.json create mode 100644 tests/fixtures/0.4/valid-schema/person_names_given_name.json create mode 100644 tests/fixtures/0.4/valid-schema/person_names_patronymic.json create mode 100644 tests/fixtures/0.4/valid-schema/person_names_type.json create mode 100644 tests/fixtures/0.4/valid-schema/person_nationalities_code.json create mode 100644 tests/fixtures/0.4/valid-schema/person_nationalities_name.json create mode 100644 tests/fixtures/0.4/valid-schema/person_politicalExposure_object.json create mode 100644 tests/fixtures/0.4/valid-schema/person_taxResidencies.json create mode 100644 tests/fixtures/0.4/valid-schema/person_unspecified_person_details.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_date.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_license.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_publisher_name.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_publisher_name_url.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_publisher_url.json create mode 100644 tests/fixtures/0.4/valid-schema/publication_details_version.json create mode 100644 tests/fixtures/0.4/valid-schema/record_status.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_2.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_component_records.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interested_party.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interested_party_unspecified_object.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_beneficial_ownership_or_control.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_details.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_direct_or_indirect.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_end_date.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_share.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_share_exclusive_minmax.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_start_date.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_interests_type.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_is_component_true.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_is_component_true2.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_subject.json create mode 100644 tests/fixtures/0.4/valid-schema/relationship_subject_unspecified_object.json create mode 100644 tests/fixtures/0.4/valid-schema/source.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_createdBy.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_createdBy_uri.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_creationDate.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_creationDate_time.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_description.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_empty_transformed.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_statementPointerTarget.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_transformedContent.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_url.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_annotations_url_linking.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_assertedBy_uri.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_description.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_retrievedAt.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_retrievedAt_time.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_type.json create mode 100644 tests/fixtures/0.4/valid-schema/statement_source_url.json diff --git a/tests/fixtures/0.4/valid-schema/entity.json b/tests/fixtures/0.4/valid-schema/entity.json new file mode 100644 index 0000000..9661e54 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity.json @@ -0,0 +1,58 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2021-09-11T16:15:08Z", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "recordStatus": "updated", + "declarationSubject": "ent-93c75c87ab28f889", + "source": { + "assertedBy": [ + { + "name": "Mary Walsh" + } + ] + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "name": "Fermentcat Ltd", + "jurisdiction": { + "code": "IE", + "name": "Ireland" + }, + "foundingDate": "2019-09-11", + "publicListing": { + "hasPublicListing": false + }, + "identifiers": [ + { + "id": "434151", + "scheme": "IE-BAU", + "schemeName": "Irish Business Authority " + } + ], + "addresses": [ + { + "type": "registered", + "address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ", + "postCode": "V94 V3VT", + "country": { + "name": "Ireland", + "code": "IE" + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_2.json b/tests/fixtures/0.4/valid-schema/entity_2.json new file mode 100644 index 0000000..84a58df --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_2.json @@ -0,0 +1,47 @@ +[ + { + "statementId": "crxpru319949212398855320030147004728", + "statementDate": "2019-01-20", + "publicationDetails": { + "publicationDate": "2019-01-31", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Company Register, Delaware" + } + }, + "recordId": "01B68D7633", + "recordType": "entity", + "recordStatus": "new", + "source": { + "type": [ + "selfDeclaration" + ], + "assertedBy": [ + { + "name": "Maria Esteves" + } + ] + }, + "declaration": "bo-jtc-8755982746", + "declarationSubject": "01B68D7633", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "name": "Tecido Ltd", + "jurisdiction": { + "name": "Delaware", + "code": "US-DE" + }, + "foundingDate": "2002-03-09", + "identifiers": [ + { + "id": "758355", + "schemeName": "Company Registry, Delaware. Company number" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_address.json b/tests/fixtures/0.4/valid-schema/entity_address_address.json new file mode 100644 index 0000000..6da7160 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_address.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "addresses": [ + { + "address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick " + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_country.json b/tests/fixtures/0.4/valid-schema/entity_address_country.json new file mode 100644 index 0000000..5bcb601 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_country.json @@ -0,0 +1,26 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false, + "addresses": [ + { + "type": "registered", + "address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ", + "postCode": "V94 V3VT", + "country": { + "name": "Ireland", + "code": "IE" + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_country_2.json b/tests/fixtures/0.4/valid-schema/entity_address_country_2.json new file mode 100644 index 0000000..3bff3c6 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_country_2.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "addresses": [ + { + "country": { + "name": "Ireland", + "code": "IE" + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_country_no_code.json b/tests/fixtures/0.4/valid-schema/entity_address_country_no_code.json new file mode 100644 index 0000000..203d375 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_country_no_code.json @@ -0,0 +1,25 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false, + "addresses": [ + { + "type": "registered", + "address": "53 Killard, Kilteragh, Dooradoyle, Co. Limerick ", + "postCode": "V94 V3VT", + "country": { + "name": "Ireland" + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_postcode.json b/tests/fixtures/0.4/valid-schema/entity_address_postcode.json new file mode 100644 index 0000000..2fea138 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_postcode.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "addresses": [ + { + "postCode": "V94 V3VT" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_address_type.json b/tests/fixtures/0.4/valid-schema/entity_address_type.json new file mode 100644 index 0000000..ce02aab --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_address_type.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "addresses": [ + { + "type": "registered" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_addresses_type.json b/tests/fixtures/0.4/valid-schema/entity_addresses_type.json new file mode 100644 index 0000000..a76f67c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_addresses_type.json @@ -0,0 +1,25 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false, + "addresses": [ + { + "type": "business", + "address": "23 Regent St, London", + "country": { + "name": "United Kingdom", + "code": "GB" + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_alternate_names.json b/tests/fixtures/0.4/valid-schema/entity_alternate_names.json new file mode 100644 index 0000000..2d52a89 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_alternate_names.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "alternateNames": [ + "Fermentcat Ltd" + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_dissolution_date.json b/tests/fixtures/0.4/valid-schema/entity_dissolution_date.json new file mode 100644 index 0000000..4ef06bc --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_dissolution_date.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "dissolutionDate": "2019-09-11" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_formed_by_statute.json b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute.json new file mode 100644 index 0000000..8c3e654 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute.json @@ -0,0 +1,17 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody" + }, + "formedByStatute": { + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_date.json b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_date.json new file mode 100644 index 0000000..b13bc4a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_date.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody" + }, + "formedByStatute": { + "date": "2019-03-04" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_name.json b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_name.json new file mode 100644 index 0000000..284294e --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_formed_by_statute_name.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody" + }, + "formedByStatute": { + "name": "statute 123" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_founding_date.json b/tests/fixtures/0.4/valid-schema/entity_founding_date.json new file mode 100644 index 0000000..3f954ac --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_founding_date.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "foundingDate": "2019-09-11" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_government_body.json b/tests/fixtures/0.4/valid-schema/entity_government_body.json new file mode 100644 index 0000000..ce10123 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_government_body.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2017-01-01", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody", + "subtype": "governmentDepartment" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_identifiers_id.json b/tests/fixtures/0.4/valid-schema/entity_identifiers_id.json new file mode 100644 index 0000000..8c5f9ed --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_identifiers_id.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "identifiers": [ + { + "id": "434151", + "scheme": "IE-BAU" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme.json b/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme.json new file mode 100644 index 0000000..ac33867 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "identifiers": [ + { + "scheme": "IE-BAU" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme_name.json b/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme_name.json new file mode 100644 index 0000000..7ce8421 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_identifiers_scheme_name.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "identifiers": [ + { + "schemeName": "Irish Business Authority " + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_identifiers_uri.json b/tests/fixtures/0.4/valid-schema/entity_identifiers_uri.json new file mode 100644 index 0000000..46ba3e5 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_identifiers_uri.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "entity", + "declarationSubject": "eyh3827439", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false, + "identifiers": [ + { + "schemeName": "64732", + "id": "2475625", + "uri": "http://www.righturl.com" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_jurisdiction_code.json b/tests/fixtures/0.4/valid-schema/entity_jurisdiction_code.json new file mode 100644 index 0000000..94a55ca --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_jurisdiction_code.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "jurisdiction": { + "name": "Ireland", + "code": "IE" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_jurisdiction_name.json b/tests/fixtures/0.4/valid-schema/entity_jurisdiction_name.json new file mode 100644 index 0000000..391ae93 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_jurisdiction_name.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "jurisdiction": { + "name": "Ireland" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_name.json b/tests/fixtures/0.4/valid-schema/entity_name.json new file mode 100644 index 0000000..074dea5 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_name.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "name": "Fermentcat Ltd" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_nomination.json b/tests/fixtures/0.4/valid-schema/entity_nomination.json new file mode 100644 index 0000000..b4c7105 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_nomination.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2018-09-01", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "arrangement", + "subtype": "nomination" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_public_listing.json b/tests/fixtures/0.4/valid-schema/entity_public_listing.json new file mode 100644 index 0000000..c97356a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_public_listing.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing": { + "hasPublicListing": false + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_public_listing_company_filings.json b/tests/fixtures/0.4/valid-schema/entity_public_listing_company_filings.json new file mode 100644 index 0000000..e7c9830 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_public_listing_company_filings.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing": { + "hasPublicListing": false, + "companyFilingsURLs": [ + "https://www.test.org" + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_security_MIC.json b/tests/fixtures/0.4/valid-schema/entity_security_MIC.json new file mode 100644 index 0000000..5172d92 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_security_MIC.json @@ -0,0 +1,28 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing":{ + "hasPublicListing" : true, + "securitiesListings": [ + { + "marketIdentifierCode": "MIC code", + "security": { + "ticker": "FMT" + }, + "stockExchangeName" :"Irish stock exchange", + "stockExchangeJurisdiction": "IE" + } + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_security_OMIC.json b/tests/fixtures/0.4/valid-schema/entity_security_OMIC.json new file mode 100644 index 0000000..5bb49ee --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_security_OMIC.json @@ -0,0 +1,28 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing":{ + "hasPublicListing" : true, + "securitiesListings": [ + { + "operatingMarketIdentifierCode": "MIC code", + "security": { + "ticker": "FMT" + }, + "stockExchangeName" :"Irish stock exchange", + "stockExchangeJurisdiction": "IE" + } + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_security_id.json b/tests/fixtures/0.4/valid-schema/entity_security_id.json new file mode 100644 index 0000000..7125149 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_security_id.json @@ -0,0 +1,28 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing":{ + "hasPublicListing" : true, + "securitiesListings": [ + { + "security": { + "ticker": "FMT", + "id": "12345" + }, + "stockExchangeName" :"Irish stock exchange", + "stockExchangeJurisdiction": "IE" + } + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_security_idscheme.json b/tests/fixtures/0.4/valid-schema/entity_security_idscheme.json new file mode 100644 index 0000000..79bcf7d --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_security_idscheme.json @@ -0,0 +1,28 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing":{ + "hasPublicListing" : true, + "securitiesListings": [ + { + "security": { + "ticker": "FMT", + "idScheme": "isin" + }, + "stockExchangeName" :"Irish stock exchange", + "stockExchangeJurisdiction": "IE" + } + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_security_listing.json b/tests/fixtures/0.4/valid-schema/entity_security_listing.json new file mode 100644 index 0000000..16ec5dc --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_security_listing.json @@ -0,0 +1,27 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "publicListing":{ + "hasPublicListing" : true, + "securitiesListings": [ + { + "security": { + "ticker": "FMT" + }, + "stockExchangeName" :"Irish stock exchange", + "stockExchangeJurisdiction": "IE" + } + ] + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_statementDate.json b/tests/fixtures/0.4/valid-schema/entity_statementDate.json new file mode 100644 index 0000000..86e48fd --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_statementDate.json @@ -0,0 +1,15 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_statementDate_time.json b/tests/fixtures/0.4/valid-schema/entity_statementDate_time.json new file mode 100644 index 0000000..a9eee4b --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_statementDate_time.json @@ -0,0 +1,15 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2020-09-11T16:30:23Z", + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "registeredEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_trust_legal_entity.json b/tests/fixtures/0.4/valid-schema/entity_trust_legal_entity.json new file mode 100644 index 0000000..c103e38 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_trust_legal_entity.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2022-01-08", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "legalEntity", + "subtype": "trust" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_type_details.json b/tests/fixtures/0.4/valid-schema/entity_type_details.json new file mode 100644 index 0000000..9d8bdf3 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_type_details.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2017-01-01", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody", + "details": "department for transport" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_type_registered_entity_subtype.json b/tests/fixtures/0.4/valid-schema/entity_type_registered_entity_subtype.json new file mode 100644 index 0000000..6ad7099 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_type_registered_entity_subtype.json @@ -0,0 +1,17 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity", + "subtype": "other", + "details": "other type of entity" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_type_statebody_other.json b/tests/fixtures/0.4/valid-schema/entity_type_statebody_other.json new file mode 100644 index 0000000..434387e --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_type_statebody_other.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2017-01-01", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "stateBody", + "subtype": "other" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_type_trust_arrangement.json b/tests/fixtures/0.4/valid-schema/entity_type_trust_arrangement.json new file mode 100644 index 0000000..f43e9b3 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_type_trust_arrangement.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "statementDate": "2022-01-08", + "publicationDetails": { + "publicationDate": "2021-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "arrangement", + "subtype": "trust" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_description.json b/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_description.json new file mode 100644 index 0000000..1588469 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_description.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "unknownEntity" + }, + "unspecifiedEntityDetails": { + "reason": "noBeneficialOwners", + "description": "no shareholders with over 10% of shares" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_details.json b/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_details.json new file mode 100644 index 0000000..850b281 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_unspecified_entity_details.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "unknownEntity" + }, + "unspecifiedEntityDetails": { + "reason": "noBeneficialOwners" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/entity_uri.json b/tests/fixtures/0.4/valid-schema/entity_uri.json new file mode 100644 index 0000000..bcf3cfb --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/entity_uri.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + }, + "uri": "https://www.example.com/index.html" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person.json b/tests/fixtures/0.4/valid-schema/person.json new file mode 100644 index 0000000..3c037d6 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person.json @@ -0,0 +1,53 @@ +[{ + "statementId": "733b20a572f8b306b538344c7946c9cb", + "statementDate": "2019-09-11T11:17:23Z", + "publicationDetails": { + "publicationDate": "2019-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "recordStatus": "new", + "declarationSubject": "ent-93c75c87ab28f889", + "source": { + "assertedBy": [ + { + "name": "Riyadh Byrne-Amin" + } + ] + }, + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "type": "legal", + "fullName": "Riyadh Byrne-Amin", + "familyName": "Byrne-Amin", + "givenName": "Riyadh" + } + ], + "birthDate": "1990-06-12", + "identifiers": [ + { + "id": "7700225VH", + "scheme": "IRL-TAXID", + "schemeName": "Ireland Personal Public Service Number" + } + ], + "nationalities": [ + { + "name": "Iraq", + "code": "IQ" + }, + { + "name": "Ireland", + "code": "IE" + } + ] + } +}] diff --git a/tests/fixtures/0.4/valid-schema/person_2.json b/tests/fixtures/0.4/valid-schema/person_2.json new file mode 100644 index 0000000..e7c7c4b --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_2.json @@ -0,0 +1,40 @@ +[ + { + "statementId": "crxpru288148613461215288221503762424", + "statementDate": "2019-01-20", + "publicationDetails": { + "publicationDate": "2019-01-31", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Company Register, Delaware" + } + }, + "recordId": "018AF6B3EB", + "recordType": "person", + "recordStatus": "new", + "source": { + "type": ["selfDeclaration"], + "assertedBy": [ + { + "name": "Maria Esteves" + } + ] + }, + "declaration": "bo-jtc-8755982746", + "declarationSubject": "01B68D7633", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "type": "legal", + "fullName": "Maria Esteves", + "familyName": "Esteves", + "givenName": "Maria" + } + ], + "birthDate": "1956-05-24" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_endDate.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_endDate.json new file mode 100644 index 0000000..1441a89 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_endDate.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep", + "details": [ + { + "endDate": "2020-10-15" + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_jurisdiction.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_jurisdiction.json new file mode 100644 index 0000000..bedc637 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_jurisdiction.json @@ -0,0 +1,24 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep", + "details": [ + { + "jurisdiction": { + "code": "GB", + "name": "United Kingdom of Great Britain and Northern Ireland (the)" + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_missingInfoReason.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_missingInfoReason.json new file mode 100644 index 0000000..4d889f2 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_missingInfoReason.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "unknown", + "details": [ + { + "missingInfoReason": "Awaiting record" + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_reason.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_reason.json new file mode 100644 index 0000000..9f46142 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_reason.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep", + "details": [ + { + "reason": "Member of Parliament" + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_source.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_source.json new file mode 100644 index 0000000..56d5e5a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_source.json @@ -0,0 +1,25 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep", + "details": [ + { + "source": { + "type": [ + "selfDeclaration" + ] + } + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_startDate.json b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_startDate.json new file mode 100644 index 0000000..48b49c6 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_PepStatusDetails_startDate.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep", + "details": [ + { + "startDate": "2016-10-15" + } + ] + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_addresses_type.json b/tests/fixtures/0.4/valid-schema/person_addresses_type.json new file mode 100644 index 0000000..dbe5d8d --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_addresses_type.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "recordId": "123", + "recordType": "person", + "recordDetails": { + "personType": "knownPerson", + "isComponent": false, + "addresses": [ + { + "type":"residence", + "address": "23 Regent St, London", + "country": { + "name": "United Kingdom", + "code":"GB" + } + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_birth_date.json b/tests/fixtures/0.4/valid-schema/person_birth_date.json new file mode 100644 index 0000000..b9128bd --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_birth_date.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "birthDate": "1990-06-12" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_birth_date_year.json b/tests/fixtures/0.4/valid-schema/person_birth_date_year.json new file mode 100644 index 0000000..77d0f12 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_birth_date_year.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "birthDate": "1990" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_birth_date_year_month.json b/tests/fixtures/0.4/valid-schema/person_birth_date_year_month.json new file mode 100644 index 0000000..c63f6fe --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_birth_date_year_month.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "birthDate": "1990-06" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_birth_place.json b/tests/fixtures/0.4/valid-schema/person_birth_place.json new file mode 100644 index 0000000..25ce175 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_birth_place.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "placeOfBirth":{ + "type": "placeOfBirth", + "country": { + "code":"IE", + "name":"Ireland" + } + } + + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_death_date_full.json b/tests/fixtures/0.4/valid-schema/person_death_date_full.json new file mode 100644 index 0000000..6c995ee --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_death_date_full.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "deathDate": "2001-06-12" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_death_date_year.json b/tests/fixtures/0.4/valid-schema/person_death_date_year.json new file mode 100644 index 0000000..2a2a6e0 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_death_date_year.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "deathDate": "2001" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_death_date_year_month.json b/tests/fixtures/0.4/valid-schema/person_death_date_year_month.json new file mode 100644 index 0000000..33f2d94 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_death_date_year_month.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "deathDate": "2001-06" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_identifiers_id.json b/tests/fixtures/0.4/valid-schema/person_identifiers_id.json new file mode 100644 index 0000000..60d1f0d --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_identifiers_id.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "identifiers": [ + { + "id": "7700225VH", + "scheme": "IRL-TAXID" + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_identifiers_scheme.json b/tests/fixtures/0.4/valid-schema/person_identifiers_scheme.json new file mode 100644 index 0000000..14136ef --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_identifiers_scheme.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "identifiers": [ + { + "scheme": "IRL-TAXID" + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_identifiers_scheme_name.json b/tests/fixtures/0.4/valid-schema/person_identifiers_scheme_name.json new file mode 100644 index 0000000..9f4949a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_identifiers_scheme_name.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "identifiers": [ + { + "schemeName": "Ireland Personal Public Service Number" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_names_family_name.json b/tests/fixtures/0.4/valid-schema/person_names_family_name.json new file mode 100644 index 0000000..474f581 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_names_family_name.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "familyName": "Byrne-Amin", + "fullName": "Riyadh Byrne-Amin" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_names_full_name.json b/tests/fixtures/0.4/valid-schema/person_names_full_name.json new file mode 100644 index 0000000..2213f07 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_names_full_name.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "fullName": "Riyadh Byrne-Amin" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_names_given_name.json b/tests/fixtures/0.4/valid-schema/person_names_given_name.json new file mode 100644 index 0000000..fdf0f36 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_names_given_name.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "givenName": "Riyadh", + "fullName": "Riyadh Byrne-Amin" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_names_patronymic.json b/tests/fixtures/0.4/valid-schema/person_names_patronymic.json new file mode 100644 index 0000000..66c11c2 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_names_patronymic.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "patronymicName": "Sergeyevich", + "fullName": "Yuri Sergeyevich" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_names_type.json b/tests/fixtures/0.4/valid-schema/person_names_type.json new file mode 100644 index 0000000..363e427 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_names_type.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "names": [ + { + "type": "legal", + "fullName": "Riyadh Byrne-Amin" + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/person_nationalities_code.json b/tests/fixtures/0.4/valid-schema/person_nationalities_code.json new file mode 100644 index 0000000..20dba87 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_nationalities_code.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "nationalities": [ + { + "name": "Iraq", + "code": "IQ" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_nationalities_name.json b/tests/fixtures/0.4/valid-schema/person_nationalities_name.json new file mode 100644 index 0000000..a8076d8 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_nationalities_name.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "nationalities": [ + { + "name": "Iraq" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_politicalExposure_object.json b/tests/fixtures/0.4/valid-schema/person_politicalExposure_object.json new file mode 100644 index 0000000..fbf1362 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_politicalExposure_object.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "politicalExposure": { + "status": "isPep" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_taxResidencies.json b/tests/fixtures/0.4/valid-schema/person_taxResidencies.json new file mode 100644 index 0000000..41a275c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_taxResidencies.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson", + "taxResidencies": [ + { + "name": "Ireland", + "code": "IE" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/person_unspecified_person_details.json b/tests/fixtures/0.4/valid-schema/person_unspecified_person_details.json new file mode 100644 index 0000000..a581913 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/person_unspecified_person_details.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "unknownPerson", + "unspecifiedPersonDetails": { + "reason": "unknown" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/publication_details_date.json b/tests/fixtures/0.4/valid-schema/publication_details_date.json new file mode 100644 index 0000000..0a41e57 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_date.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "bodsVersion": "0.4", + "publisher": { + "name": "Test Publisher" + }, + "publicationDate": "2021-09-11T00:00:00+00:00" + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/publication_details_license.json b/tests/fixtures/0.4/valid-schema/publication_details_license.json new file mode 100644 index 0000000..432ae43 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_license.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "publicationDate": "2021-09-11", + "bodsVersion": "0.4", + "publisher": { + "name": "Test Publisher" + }, + "license": "http://opendefinition.org/licenses/cc-zero" + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/publication_details_publisher_name.json b/tests/fixtures/0.4/valid-schema/publication_details_publisher_name.json new file mode 100644 index 0000000..51cff00 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_publisher_name.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "publicationDate": "2021-09-11", + "bodsVersion": "0.4", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/publication_details_publisher_name_url.json b/tests/fixtures/0.4/valid-schema/publication_details_publisher_name_url.json new file mode 100644 index 0000000..f8a8d1e --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_publisher_name_url.json @@ -0,0 +1,23 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "publicationDate": "2021-09-11", + "bodsVersion": "0.4", + "publisher": { + "name": "test", + "url": "https://www.test.org" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/publication_details_publisher_url.json b/tests/fixtures/0.4/valid-schema/publication_details_publisher_url.json new file mode 100644 index 0000000..7fe238a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_publisher_url.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "publicationDate": "2021-09-11", + "bodsVersion": "0.4", + "publisher": { + "url": "https://www.test.org" + } + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/publication_details_version.json b/tests/fixtures/0.4/valid-schema/publication_details_version.json new file mode 100644 index 0000000..ee6832b --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/publication_details_version.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "publicationDetails": { + "publicationDate": "2021-09-11", + "publisher": { + "name": "Test Publisher" + }, + "bodsVersion": "0.4" + }, + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/record_status.json b/tests/fixtures/0.4/valid-schema/record_status.json new file mode 100644 index 0000000..7cceb68 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/record_status.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "733b20a572f8b306b538344c7946c9cb", + "recordId": "per-5faa4103dee78621", + "recordType": "person", + "recordStatus": "new", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship.json b/tests/fixtures/0.4/valid-schema/relationship.json new file mode 100644 index 0000000..5739fad --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship.json @@ -0,0 +1,45 @@ +[{ + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "statementDate": "2020-09-11T16:30:23Z", + "publicationDetails": { + "publicationDate": "2020-09-11T00:00:00+00:00", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Irish Business Authority" + } + }, + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "recordStatus": "updated", + "declarationSubject": "ent-93c75c87ab28f889", + "source": { + "assertedBy": [ + { + "name": "Riyadh Byrne-Amin" + } + ] + }, + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "type": "shareholding", + "directOrIndirect": "direct", + "beneficialOwnershipOrControl": true, + "share": { + "exact": 50 + }, + "startDate": "2019-09-11" + }, + { + "type": "boardMember", + "directOrIndirect": "direct", + "beneficialOwnershipOrControl": true, + "startDate": "2019-09-11" + } + ] + } +}] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_2.json b/tests/fixtures/0.4/valid-schema/relationship_2.json new file mode 100644 index 0000000..4fc82c8 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_2.json @@ -0,0 +1,60 @@ +[{ + "statementId": "crxpru407636437638495407739553674232", + "statementDate": "2019-01-20", + "publicationDetails": { + "publicationDate": "2019-01-31", + "bodsVersion": "0.4", + "license": "http://opendefinition.org/licenses/cc-zero", + "publisher": { + "name": "Company Register, Delaware" + } + }, + "recordId": "022EBEB66B", + "recordType": "relationship", + "recordStatus": "new", + "source": { + "type": ["selfDeclaration"], + "assertedBy": [ + { + "name": "Maria Esteves" + } + ] + }, + "declaration": "bo-jtc-8755982746", + "declarationSubject": "01B68D7633", + "recordDetails": { + "isComponent": false, + "subject": "01B68D7633", + "interestedParty": "018AF6B3EB", + "interests": [ + { + "type": "shareholding", + "directOrIndirect": "direct", + "beneficialOwnershipOrControl": true, + "share": { + "exact": 100, + "maximum": 100, + "minimum": 100 + }, + "startDate": "2002-03-09" + }, + { + "type": "votingRights", + "directOrIndirect": "direct", + "beneficialOwnershipOrControl": true, + "share": { + "exact": 100, + "maximum": 100, + "minimum": 100 + }, + "startDate": "2002-03-09" + }, + { + "type": "boardChair", + "directOrIndirect": "direct", + "beneficialOwnershipOrControl": true, + "startDate": "2002-03-09" + } + ] + } +}] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_component_records.json b/tests/fixtures/0.4/valid-schema/relationship_component_records.json new file mode 100644 index 0000000..0161b73 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_component_records.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "componentRecords": [ + "per-1234", + "ent-5678", + "rel-7890" + ], + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_interested_party.json b/tests/fixtures/0.4/valid-schema/relationship_interested_party.json new file mode 100644 index 0000000..2d68a22 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interested_party.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_interested_party_unspecified_object.json b/tests/fixtures/0.4/valid-schema/relationship_interested_party_unspecified_object.json new file mode 100644 index 0000000..eb90162 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interested_party_unspecified_object.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f88", + "interestedParty": { + "reason": "interestedPartyExemptFromDisclosure" + } + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_beneficial_ownership_or_control.json b/tests/fixtures/0.4/valid-schema/relationship_interests_beneficial_ownership_or_control.json new file mode 100644 index 0000000..1707e83 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_beneficial_ownership_or_control.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "beneficialOwnershipOrControl": true + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_details.json b/tests/fixtures/0.4/valid-schema/relationship_interests_details.json new file mode 100644 index 0000000..ea58216 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_details.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "details": "details about interest" + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_direct_or_indirect.json b/tests/fixtures/0.4/valid-schema/relationship_interests_direct_or_indirect.json new file mode 100644 index 0000000..2dabbd7 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_direct_or_indirect.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "directOrIndirect": "direct" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_end_date.json b/tests/fixtures/0.4/valid-schema/relationship_interests_end_date.json new file mode 100644 index 0000000..25b5d68 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_end_date.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "endDate": "2019-09-11" + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_share.json b/tests/fixtures/0.4/valid-schema/relationship_interests_share.json new file mode 100644 index 0000000..6df170c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_share.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "share": { + "exact": 50 + } + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_share_exclusive_minmax.json b/tests/fixtures/0.4/valid-schema/relationship_interests_share_exclusive_minmax.json new file mode 100644 index 0000000..091c244 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_share_exclusive_minmax.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "share": { + "exclusiveMinimum": 25, + "exclusiveMaximum": 75 + } + } + ] + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_start_date.json b/tests/fixtures/0.4/valid-schema/relationship_interests_start_date.json new file mode 100644 index 0000000..a717cf1 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_start_date.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "startDate": "2019-09-11" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_interests_type.json b/tests/fixtures/0.4/valid-schema/relationship_interests_type.json new file mode 100644 index 0000000..8fa16c8 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_interests_type.json @@ -0,0 +1,19 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621", + "interests": [ + { + "type": "shareholding" + } + ] + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_is_component_true.json b/tests/fixtures/0.4/valid-schema/relationship_is_component_true.json new file mode 100644 index 0000000..1d8db6c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_is_component_true.json @@ -0,0 +1,15 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": true, + "componentRecords": [], + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_is_component_true2.json b/tests/fixtures/0.4/valid-schema/relationship_is_component_true2.json new file mode 100644 index 0000000..77c832c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_is_component_true2.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": true, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/relationship_subject.json b/tests/fixtures/0.4/valid-schema/relationship_subject.json new file mode 100644 index 0000000..2d68a22 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_subject.json @@ -0,0 +1,14 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": "ent-93c75c87ab28f889", + "interestedParty": "per-5faa4103dee78621" + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/relationship_subject_unspecified_object.json b/tests/fixtures/0.4/valid-schema/relationship_subject_unspecified_object.json new file mode 100644 index 0000000..a58095d --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/relationship_subject_unspecified_object.json @@ -0,0 +1,16 @@ +[ + { + "statementId": "9d167324c416bbfd37fe5c1a1b2afa95", + "recordId": "rel-b05e7c91e0a04e4f", + "recordType": "relationship", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "recordDetails": { + "isComponent": false, + "subject": { + "reason": "subjectExemptFromDisclosure" + }, + "interestedParty": "per-5faa4103dee78621" + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/source.json b/tests/fixtures/0.4/valid-schema/source.json new file mode 100644 index 0000000..9c8b9ed --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/source.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "assertedBy": [ + { + "name": "Mary Walsh" + } + ] + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy.json b/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy.json new file mode 100644 index 0000000..897b98b --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy.json @@ -0,0 +1,24 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "createdBy": { + "name": "Joe Harris" + } + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy_uri.json b/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy_uri.json new file mode 100644 index 0000000..d341eac --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_createdBy_uri.json @@ -0,0 +1,25 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "createdBy": { + "name": "Joe Harris", + "uri": "https://www.example.com/index.html" + } + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate.json b/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate.json new file mode 100644 index 0000000..9fb39f9 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "creationDate": "2017-11-20" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate_time.json b/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate_time.json new file mode 100644 index 0000000..09db440 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_creationDate_time.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "creationDate": "2017-11-20T16:30:23Z" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_description.json b/tests/fixtures/0.4/valid-schema/statement_annotations_description.json new file mode 100644 index 0000000..5742194 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_description.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "description": "The interested party is a British MP and, at the time this statement was made, the Secretary of State for Health and Social Care." + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_empty_transformed.json b/tests/fixtures/0.4/valid-schema/statement_annotations_empty_transformed.json new file mode 100644 index 0000000..7603fa2 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_empty_transformed.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "correcting", + "transformedContent": "" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_statementPointerTarget.json b/tests/fixtures/0.4/valid-schema/statement_annotations_statementPointerTarget.json new file mode 100644 index 0000000..3e5395e --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_statementPointerTarget.json @@ -0,0 +1,21 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_transformedContent.json b/tests/fixtures/0.4/valid-schema/statement_annotations_transformedContent.json new file mode 100644 index 0000000..9bd3fad --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_transformedContent.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/statementDate", + "motivation": "transformation", + "transformedContent": "12-31-2020" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_url.json b/tests/fixtures/0.4/valid-schema/statement_annotations_url.json new file mode 100644 index 0000000..80215a1 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_url.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "identifying", + "url": "https://www.example.com/index.html" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/statement_annotations_url_linking.json b/tests/fixtures/0.4/valid-schema/statement_annotations_url_linking.json new file mode 100644 index 0000000..ff65dcb --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_annotations_url_linking.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "declarationSubject": "xyz", + "statementDate": "2017-11-18", + "annotations": [ + { + "statementPointerTarget": "/recordDetails/interestedParty", + "motivation": "linking", + "url": "https://www.example.com/index.html" + } + ], + "recordId": "123", + "recordType": "entity", + "recordDetails": { + "entityType": { + "type": "unknownEntity" + }, + "isComponent": false + } + } +] diff --git a/tests/fixtures/0.4/valid-schema/statement_source_assertedBy_uri.json b/tests/fixtures/0.4/valid-schema/statement_source_assertedBy_uri.json new file mode 100644 index 0000000..aba856a --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_assertedBy_uri.json @@ -0,0 +1,22 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "assertedBy": [ + { + "uri": "https://www.example.com/index.html" + } + ] + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_source_description.json b/tests/fixtures/0.4/valid-schema/statement_source_description.json new file mode 100644 index 0000000..e07dea4 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_description.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "description": "Official register updated annually" + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt.json b/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt.json new file mode 100644 index 0000000..14130fd --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "retrievedAt": "2017-11-15" + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt_time.json b/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt_time.json new file mode 100644 index 0000000..a3af0b6 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_retrievedAt_time.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "retrievedAt": "2017-11-15T16:30:23Z" + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_source_type.json b/tests/fixtures/0.4/valid-schema/statement_source_type.json new file mode 100644 index 0000000..cb60b17 --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_type.json @@ -0,0 +1,20 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "type": [ + "selfDeclaration" + ] + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/fixtures/0.4/valid-schema/statement_source_url.json b/tests/fixtures/0.4/valid-schema/statement_source_url.json new file mode 100644 index 0000000..80d8f2c --- /dev/null +++ b/tests/fixtures/0.4/valid-schema/statement_source_url.json @@ -0,0 +1,18 @@ +[ + { + "statementId": "2f7bf9370f1254068e5e946df067d07d", + "recordId": "ent-93c75c87ab28f889", + "recordType": "entity", + "declarationSubject": "ent-93c75c87ab28f889", + "statementDate": "2017-11-18", + "source": { + "url": "https://www.example.com/index.html" + }, + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + } +] \ No newline at end of file diff --git a/tests/test_schema_validation_0_4.py b/tests/test_schema_validation_0_4.py index 698263e..ab7adbc 100644 --- a/tests/test_schema_validation_0_4.py +++ b/tests/test_schema_validation_0_4.py @@ -1,6 +1,7 @@ import json import csv import os +import pathlib import pytest import tempfile @@ -15,6 +16,10 @@ def expected_errors(): expected.append(row) return expected +@pytest.fixture +def valid_statements(): + return pathlib.Path('tests/fixtures/0.4/valid-schema').glob("*.json") + def extract_elements(element_path): elems = [0 if elem == '$[0]' else elem for elem in element_path.split(".")] out = [] @@ -27,7 +32,7 @@ def extract_elements(element_path): if len(out) == 1 and out[0] == '$': out = [] return out -def test_all_schema_validation(expected_errors): +def test_all_schema_validation_invalid(expected_errors): cove_temp_folder = tempfile.mkdtemp( prefix="lib-cove-bods-tests-", dir=tempfile.gettempdir() @@ -58,3 +63,17 @@ def test_all_schema_validation(expected_errors): print(expected) print(results['validation_errors'][0]) assert False + + +def test_all_schema_validation_valid(valid_statements): + + cove_temp_folder = tempfile.mkdtemp( + prefix="lib-cove-bods-tests-", dir=tempfile.gettempdir() + ) + + for valid_statement in valid_statements: + + results = bods_json_output(cove_temp_folder, valid_statement) + + assert results["schema_version"] == "0.4" + assert results['validation_errors_count'] == 0