Skip to content

Commit

Permalink
schema: Various changes around ISO lists
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjames committed Nov 4, 2021
1 parent 2b501e1 commit 348af53
Show file tree
Hide file tree
Showing 29 changed files with 82 additions and 38 deletions.
7 changes: 7 additions & 0 deletions docs/schema/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ ChangeLog
Added
-----
- Support for describing the traded securities and status of a publicly listed company (PLC): a new ``publicListing`` object has been added to Entity Statements.
- ``Country.name`` is now a required field (previously it was defined as "MUST" in the description).
- ``Jurisdiction.name`` is now a required field (previously it was defined as "MUST" in the description).
- ``SecuritiesListing.stockExchangeJurisdiction`` has minimum and maximum lengths to match the two lists that values could be from.

Changed
-------
- The ``interestType`` and ``unspecifiedReason`` codelist codes have been changed from using hyphens to camelCase.
- ``hasPepStatus`` and ``pepDetails`` are replaced with ``politicalExposure`` object that contains ``status`` and ``details`` properties.
- Required fields `statementPointerTarget` and `motivation` are moved from inside the `anyOf` statement to the top level, as they apply to all motivation types.
- Clarified ``Address.country`` is from the ISO 3166-1 list (previously it was unclear which ISO list was meant and used "digit" when it meant "letter").
- Clarified ``Country.code`` is from the ISO 3166-1 list (previously it was unclear which ISO list was meant and used "digit" when it meant "letter").
- Clarified ``Jurisdiction.code`` is from the ISO 3166-1 or ISO 3166-2 list (previously it was unclear which ISO list was meant and used "digit" when it meant "letter").
- Clarified ``SecuritiesListing.stockExchangeJurisdiction`` is from the ISO 3166-1 or ISO 3166-2 list (previously it was unclear which ISO list was meant and used "digit" when it meant "letter").


[0.2] - 2019-06-30
Expand Down
3 changes: 2 additions & 1 deletion examples/1-single-direct.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
3 changes: 2 additions & 1 deletion examples/2-single-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
3 changes: 2 additions & 1 deletion examples/3-joint-ownership.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"publicationDetails": {
"publicationDate": "2018-11-18",
Expand Down
3 changes: 2 additions & 1 deletion examples/4b-full-pep-declaration.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"details": [
{
"jurisdiction": {
"code": "gb"
"code": "gb",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"reason": "Member of Parliament",
"startDate": "2017-10-15",
Expand Down
3 changes: 2 additions & 1 deletion examples/flat-serialisation/gb-coh-bods-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
3 changes: 2 additions & 1 deletion examples/flat-serialisation/gb-coh-person-statement.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
9 changes: 6 additions & 3 deletions examples/os-01-dr-01.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"taxResidencies": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
{
"code": "UA"
"code": "UA",
"name": "Ukraine"
}
],
"names": [
Expand Down
26 changes: 17 additions & 9 deletions schema/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
"country": {
"title": "Country",
"description": "The ISO 2-Digit county code for this address.",
"description": "The 2-letter country code (ISO 3166-1) for this address.",
"type": "string",
"minLength": 2,
"maxLength": 2
Expand Down Expand Up @@ -426,7 +426,7 @@
},
"Country": {
"title": "Country",
"description": "A country MUST have a name. A country SHOULD have an ISO 2-Digit county code.",
"description": "A country MUST have a name. A country SHOULD have a 2-letter country code (ISO 3166-1)",
"type": "object",
"properties": {
"name": {
Expand All @@ -436,16 +436,19 @@
},
"code": {
"title": "Country code",
"description": "The ISO 2-digit code for the country.",
"description": "The 2-letter country code (ISO 3166-1) for this country.",
"type": "string",
"maxLength": 2,
"minLength": 2
}
}
},
"required": [
"name"
]
},
"Jurisdiction": {
"title": "Jurisdiction",
"description": "A jurisdiction MUST have a name. A jurisdiction SHOULD have an ISO ISO_3166-2 2-Digit country code, or ISO_3166-2 sub-division code.",
"description": "A jurisdiction MUST have a name. A jurisdiction SHOULD have the 2-letter country code (ISO 3166-1) or the subdivision code (ISO 3166-2) for the jurisdiction.",
"type": "object",
"properties": {
"name": {
Expand All @@ -454,13 +457,16 @@
"type": "string"
},
"code": {
"title": "Country code",
"description": "The ISO_3166-2 2-Digit country code, or ISO_3166-2 sub-division code of the jurisdiction",
"title": "Country or subdivision code",
"description": "The 2-letter country code (ISO 3166-1) or the subdivision code (ISO 3166-2) for the jurisdiction.",
"type": "string",
"maxLength": 6,
"minLength": 2
}
}
},
"required": [
"name"
]
},
"PepStatusDetails": {
"title": "PEP Status",
Expand Down Expand Up @@ -625,7 +631,9 @@
"stockExchangeJurisdiction": {
"type": "string",
"title": "Stock exchange jurisdiction",
"description": "The 2-Digit country code (ISO 3166-2) of the jurisdiction under which the exchange, market or trading platform is regulated."
"description": "The 2-letter country code (ISO 3166-1) or the subdivision code (ISO 3166-2) for the jurisdiction under which the exchange, market or trading platform is regulated.",
"maxLength": 6,
"minLength": 2
},
"stockExchangeName": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"source": {
"type": [
Expand Down
3 changes: 2 additions & 1 deletion tests/data/bods-package/valid/valid-bods-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"source": {
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"publicationDetailsTypo": {
"publicationDate": "2017-11-18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"source": {
"type": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}
],
"incorporatedInJurisdiction": {
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
},
"publicationDetails": {
"publicationDate": "2017-11-18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"personType": "knownPerson",
"nationalities": [
{
"code": "GB"
"code": "GB",
"name": "United Kingdom of Great Britain and Northern Ireland (the)"
}
],
"names": [
Expand Down

0 comments on commit 348af53

Please sign in to comment.