From 7a36bad92aa1df61bd03d916ad72edd10cd98b21 Mon Sep 17 00:00:00 2001 From: Ben Ellis Date: Thu, 1 May 2025 11:58:59 +0100 Subject: [PATCH 1/2] DA-5869: Added rules for schemas to most closely align with validation in ingestion. --- build/accounts-statement-schema.json | 12 +++++++----- build/alternate-registration-schema.json | 12 +++++++----- build/company-schema.json | 12 +++++++----- build/control-statement-schema.json | 12 +++++++----- build/filing-schema.json | 15 +++++++++------ build/gazette-notice-schema.json | 12 +++++++----- build/licence-schema.json | 12 +++++++----- build/register-entry-schema.json | 12 +++++++----- build/sanctioned-entity-schema.json | 12 +++++++----- build/subsequent-registration-schema.json | 12 +++++++----- build/supplier-relationship-schema.json | 12 +++++++----- build/trademark-registration-schema.json | 12 +++++++----- schemas/filing-schema.json | 3 ++- schemas/includes/filing.json | 3 ++- schemas/includes/identifier.json | 5 ++++- schemas/includes/officer.json | 4 +--- 16 files changed, 95 insertions(+), 67 deletions(-) diff --git a/build/accounts-statement-schema.json b/build/accounts-statement-schema.json index f3653819..558b3151 100644 --- a/build/accounts-statement-schema.json +++ b/build/accounts-statement-schema.json @@ -596,9 +596,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -811,7 +809,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -861,7 +860,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/alternate-registration-schema.json b/build/alternate-registration-schema.json index 147a1edf..aaac9daf 100644 --- a/build/alternate-registration-schema.json +++ b/build/alternate-registration-schema.json @@ -506,9 +506,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -721,7 +719,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -771,7 +770,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/company-schema.json b/build/company-schema.json index 5ccbc9a4..1b9adcfc 100644 --- a/build/company-schema.json +++ b/build/company-schema.json @@ -338,9 +338,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -553,7 +551,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -603,7 +602,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/control-statement-schema.json b/build/control-statement-schema.json index 74ccf286..9d4aa346 100644 --- a/build/control-statement-schema.json +++ b/build/control-statement-schema.json @@ -792,9 +792,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -1007,7 +1005,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -1057,7 +1056,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/filing-schema.json b/build/filing-schema.json index 19c0e95e..3e3c9cd9 100644 --- a/build/filing-schema.json +++ b/build/filing-schema.json @@ -8,7 +8,8 @@ "filing_date": { "type": "string", "description": "Date on which the filing was made – note this is not necessarily the same date as the date on which it was published or the reporting/applicable data on the information contained within it", - "format": "date" + "format": "date", + "minLength": 1 }, "documents": { "type": "array", @@ -519,9 +520,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -734,7 +733,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -784,7 +784,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/gazette-notice-schema.json b/build/gazette-notice-schema.json index a9bdbd7f..0853617d 100644 --- a/build/gazette-notice-schema.json +++ b/build/gazette-notice-schema.json @@ -1150,9 +1150,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -1365,7 +1363,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -1415,7 +1414,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/licence-schema.json b/build/licence-schema.json index 66e526d9..f8ff6e8b 100644 --- a/build/licence-schema.json +++ b/build/licence-schema.json @@ -528,9 +528,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -743,7 +741,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -793,7 +792,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/register-entry-schema.json b/build/register-entry-schema.json index c828d896..8b40a69d 100644 --- a/build/register-entry-schema.json +++ b/build/register-entry-schema.json @@ -188,7 +188,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", @@ -740,9 +743,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -955,7 +956,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" diff --git a/build/sanctioned-entity-schema.json b/build/sanctioned-entity-schema.json index 61afa000..7a2e557a 100644 --- a/build/sanctioned-entity-schema.json +++ b/build/sanctioned-entity-schema.json @@ -186,7 +186,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", @@ -738,9 +741,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -953,7 +954,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" diff --git a/build/subsequent-registration-schema.json b/build/subsequent-registration-schema.json index 31a435bc..d2a38b8c 100644 --- a/build/subsequent-registration-schema.json +++ b/build/subsequent-registration-schema.json @@ -507,9 +507,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -722,7 +720,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -772,7 +771,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/supplier-relationship-schema.json b/build/supplier-relationship-schema.json index bff8b1be..2ae46425 100644 --- a/build/supplier-relationship-schema.json +++ b/build/supplier-relationship-schema.json @@ -500,9 +500,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -715,7 +713,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -765,7 +764,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/build/trademark-registration-schema.json b/build/trademark-registration-schema.json index 5926eb93..6cc5898e 100644 --- a/build/trademark-registration-schema.json +++ b/build/trademark-registration-schema.json @@ -615,9 +615,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ @@ -830,7 +828,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" @@ -880,7 +879,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/schemas/filing-schema.json b/schemas/filing-schema.json index 4885fe97..e1b65130 100644 --- a/schemas/filing-schema.json +++ b/schemas/filing-schema.json @@ -8,7 +8,8 @@ "filing_date": { "type": "string", "description": "Date on which the filing was made – note this is not necessarily the same date as the date on which it was published or the reporting/applicable data on the information contained within it", - "format": "date" + "format": "date", + "minLength": 1 }, "documents": { "type": "array", diff --git a/schemas/includes/filing.json b/schemas/includes/filing.json index bb373155..4274ea87 100644 --- a/schemas/includes/filing.json +++ b/schemas/includes/filing.json @@ -8,7 +8,8 @@ }, "date": { "type": "string", - "format": "date" + "format": "date", + "minLength": 1 }, "description": { "type": "string" diff --git a/schemas/includes/identifier.json b/schemas/includes/identifier.json index 6b8350e1..eccb788b 100644 --- a/schemas/includes/identifier.json +++ b/schemas/includes/identifier.json @@ -6,7 +6,10 @@ "uid": { "type": "string", "description": "The unique identifier given by the identifier system – it should be unique in the context of the identifier_system", - "minLength": 1 + "minLength": 1, + "not": { + "pattern": "\\A[[:space:]]*\\z" + } }, "identifier_system_code": { "type": "string", diff --git a/schemas/includes/officer.json b/schemas/includes/officer.json index d5608f0f..5604ee8f 100644 --- a/schemas/includes/officer.json +++ b/schemas/includes/officer.json @@ -6,9 +6,7 @@ "name": { "type": "string", "minLength": 1, - "not": { - "pattern": "^[\\.\\,\\*\\\\\\-\\s\\{\\}\\(\\)]+$" - } + "pattern": "[[:alnum:]]" }, "start_date": { "anyOf": [ From 8ea840e7abd8c170e49a078bd464a60e47d29ff0 Mon Sep 17 00:00:00 2001 From: Ben Ellis Date: Mon, 12 May 2025 13:29:44 +0100 Subject: [PATCH 2/2] DA-5869: Added blank check for identifier_system_code in identifiers. --- build/accounts-statement-schema.json | 5 ++++- build/alternate-registration-schema.json | 5 ++++- build/company-schema.json | 5 ++++- build/control-statement-schema.json | 5 ++++- build/filing-schema.json | 5 ++++- build/gazette-notice-schema.json | 5 ++++- build/licence-schema.json | 5 ++++- build/register-entry-schema.json | 5 ++++- build/sanctioned-entity-schema.json | 5 ++++- build/subsequent-registration-schema.json | 5 ++++- build/supplier-relationship-schema.json | 5 ++++- build/trademark-registration-schema.json | 5 ++++- schemas/includes/identifier.json | 5 ++++- 13 files changed, 52 insertions(+), 13 deletions(-) diff --git a/build/accounts-statement-schema.json b/build/accounts-statement-schema.json index 558b3151..6ba76eed 100644 --- a/build/accounts-statement-schema.json +++ b/build/accounts-statement-schema.json @@ -867,7 +867,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/alternate-registration-schema.json b/build/alternate-registration-schema.json index aaac9daf..45e08149 100644 --- a/build/alternate-registration-schema.json +++ b/build/alternate-registration-schema.json @@ -777,7 +777,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/company-schema.json b/build/company-schema.json index 1b9adcfc..498858be 100644 --- a/build/company-schema.json +++ b/build/company-schema.json @@ -609,7 +609,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/control-statement-schema.json b/build/control-statement-schema.json index 9d4aa346..851a0b86 100644 --- a/build/control-statement-schema.json +++ b/build/control-statement-schema.json @@ -1063,7 +1063,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/filing-schema.json b/build/filing-schema.json index 3e3c9cd9..9fc7938c 100644 --- a/build/filing-schema.json +++ b/build/filing-schema.json @@ -791,7 +791,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/gazette-notice-schema.json b/build/gazette-notice-schema.json index 0853617d..c3414c41 100644 --- a/build/gazette-notice-schema.json +++ b/build/gazette-notice-schema.json @@ -1421,7 +1421,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/licence-schema.json b/build/licence-schema.json index f8ff6e8b..6be8bfc4 100644 --- a/build/licence-schema.json +++ b/build/licence-schema.json @@ -799,7 +799,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/register-entry-schema.json b/build/register-entry-schema.json index 8b40a69d..4a2db65a 100644 --- a/build/register-entry-schema.json +++ b/build/register-entry-schema.json @@ -195,7 +195,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/sanctioned-entity-schema.json b/build/sanctioned-entity-schema.json index 7a2e557a..c8236aea 100644 --- a/build/sanctioned-entity-schema.json +++ b/build/sanctioned-entity-schema.json @@ -193,7 +193,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/subsequent-registration-schema.json b/build/subsequent-registration-schema.json index d2a38b8c..7caadeb3 100644 --- a/build/subsequent-registration-schema.json +++ b/build/subsequent-registration-schema.json @@ -778,7 +778,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/supplier-relationship-schema.json b/build/supplier-relationship-schema.json index 2ae46425..4a988b84 100644 --- a/build/supplier-relationship-schema.json +++ b/build/supplier-relationship-schema.json @@ -771,7 +771,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/build/trademark-registration-schema.json b/build/trademark-registration-schema.json index 6cc5898e..9eb7e62f 100644 --- a/build/trademark-registration-schema.json +++ b/build/trademark-registration-schema.json @@ -886,7 +886,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [ diff --git a/schemas/includes/identifier.json b/schemas/includes/identifier.json index eccb788b..8199b483 100644 --- a/schemas/includes/identifier.json +++ b/schemas/includes/identifier.json @@ -13,7 +13,10 @@ }, "identifier_system_code": { "type": "string", - "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)" + "description": "An identifier representing the identifier scheme. Some examples of this are us_fein (US Federal tax number), us_sec_cik (US Securities and Exchange Commission CIK), uk_ew_cc (Charity Commission of England & Wales), lei (Global Legal Entity Identifier System)", + "not": { + "pattern": "\\A[[:space:]]*\\z" + } } }, "required": [