From 04c265d347f5e9b8c6dd051e982f557387a8bf1e Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 13 Sep 2024 15:47:08 +0200 Subject: [PATCH 1/6] Add record item object definition for watchlist enhanced properties field --- .../watchlist_enhanced_properties.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/schemas/reports/watchlist_enhanced_properties.yaml b/schemas/reports/watchlist_enhanced_properties.yaml index 5f04ad40..ff7f382d 100644 --- a/schemas/reports/watchlist_enhanced_properties.yaml +++ b/schemas/reports/watchlist_enhanced_properties.yaml @@ -5,3 +5,99 @@ properties: type: array items: type: object + properties: + address: + type: array + description: All addresses on file. + items: + type: object + properties: + address_line1: + type: string + country: + type: string + postal_code: + type: string + state_province: + type: string + town: + type: string + locator_type: + type: string + alias: + type: array + description: Any names that the person is also known as. + items: + type: object + properties: + alias_name: + type: string + alias_type: + type: string + associate: + type: array + description: Any linked persons, for example family relatives or business partners. + items: + type: object + properties: + entity_name: + type: string + relationship_direction: + type: string + relationship_type: + type: string + attribute: + type: array + description: Information about the person, for example hair color or nationality. + items: + type: object + properties: + attribute_type: + type: string + attribute_value: + type: string + date_of_birth: + type: array + description: All the date of births on file. + items: + type: string + event: + type: array + description: Information about events that have occurred to the person, for example deportation or arrest. + items: + type: object + properties: + category: + type: string + event_date: + type: string + event_description: + type: string + sources: + type: object + properties: + source_date: + type: string + source_format: + type: string + source_name: + type: string + sub_category: + type: string + full_name: + type: string + position: + type: array + items: + type: string + source: + type: array + items: + type: object + properties: + source_headline: + type: string + source_name: + type: string + source_url: + type: string From b43578537049d6fdcf0d8413c9ea208e22af2a9c Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 13 Sep 2024 16:30:39 +0200 Subject: [PATCH 2/6] fix fullname --- schemas/reports/watchlist_enhanced_properties.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/schemas/reports/watchlist_enhanced_properties.yaml b/schemas/reports/watchlist_enhanced_properties.yaml index ff7f382d..8d44ac10 100644 --- a/schemas/reports/watchlist_enhanced_properties.yaml +++ b/schemas/reports/watchlist_enhanced_properties.yaml @@ -84,12 +84,12 @@ properties: type: string sub_category: type: string - full_name: + full_name: + type: string + position: + type: array + items: type: string - position: - type: array - items: - type: string source: type: array items: From 9b75eb5fe5caee9a72b83c7b7e9cfb4ce27ceb6c Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Tue, 17 Sep 2024 18:02:43 +0200 Subject: [PATCH 3/6] Small fix/improvements --- schemas/reports/watchlist_enhanced_properties.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/schemas/reports/watchlist_enhanced_properties.yaml b/schemas/reports/watchlist_enhanced_properties.yaml index 8d44ac10..76b09ba0 100644 --- a/schemas/reports/watchlist_enhanced_properties.yaml +++ b/schemas/reports/watchlist_enhanced_properties.yaml @@ -71,13 +71,15 @@ properties: type: string event_date: type: string + format: date event_description: type: string - sources: + source: type: object properties: source_date: type: string + format: date source_format: type: string source_name: @@ -86,12 +88,15 @@ properties: type: string full_name: type: string + description: The name on file position: type: array + description: The role, country and date of each position. items: type: string source: type: array + description: Details about where the information was obtained. items: type: object properties: From 12fb9cff16912d076f50fc8e532ffdbd2646a4d8 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Tue, 17 Sep 2024 18:03:53 +0200 Subject: [PATCH 4/6] Add two missing fields --- schemas/reports/watchlist_enhanced_properties.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schemas/reports/watchlist_enhanced_properties.yaml b/schemas/reports/watchlist_enhanced_properties.yaml index 76b09ba0..d8c0af13 100644 --- a/schemas/reports/watchlist_enhanced_properties.yaml +++ b/schemas/reports/watchlist_enhanced_properties.yaml @@ -84,6 +84,8 @@ properties: type: string source_name: type: string + source_url: + type: string sub_category: type: string full_name: @@ -106,3 +108,5 @@ properties: type: string source_url: type: string + source_format: + type: string From 4e61ca57b781185b7c07ca9fb15c29b0ff41fc9a Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Tue, 17 Sep 2024 18:06:38 +0200 Subject: [PATCH 5/6] Use country codes --- schemas/reports/watchlist_enhanced_properties.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schemas/reports/watchlist_enhanced_properties.yaml b/schemas/reports/watchlist_enhanced_properties.yaml index d8c0af13..6ab81710 100644 --- a/schemas/reports/watchlist_enhanced_properties.yaml +++ b/schemas/reports/watchlist_enhanced_properties.yaml @@ -16,6 +16,8 @@ properties: type: string country: type: string + allOf: + - $ref: ../countries/country_codes.yaml postal_code: type: string state_province: From 86206ce46fa81eefe44ab070514e436d2f75004f Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Tue, 17 Sep 2024 18:21:09 +0200 Subject: [PATCH 6/6] Revert "Fix records item type in watchlist reports properties" This reverts commit 8284963e21c2176215ae4d9dd34dc72dd3fd8b47. --- schemas/reports/watchlist_aml_properties.yaml | 2 +- schemas/reports/watchlist_standard_properties.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/reports/watchlist_aml_properties.yaml b/schemas/reports/watchlist_aml_properties.yaml index 5f04ad40..52bd1312 100644 --- a/schemas/reports/watchlist_aml_properties.yaml +++ b/schemas/reports/watchlist_aml_properties.yaml @@ -4,4 +4,4 @@ properties: description: Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources. type: array items: - type: object + type: string diff --git a/schemas/reports/watchlist_standard_properties.yaml b/schemas/reports/watchlist_standard_properties.yaml index 5f04ad40..52bd1312 100644 --- a/schemas/reports/watchlist_standard_properties.yaml +++ b/schemas/reports/watchlist_standard_properties.yaml @@ -4,4 +4,4 @@ properties: description: Returns any matches including, but not limited to, name and date of birth of match, aliases and associates, and relevant events and sources. type: array items: - type: object + type: string