diff --git a/build/accounts-statement-schema.json b/build/accounts-statement-schema.json index 6ba76ee..d76f7ca 100644 --- a/build/accounts-statement-schema.json +++ b/build/accounts-statement-schema.json @@ -887,7 +887,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/alternate-registration-schema.json b/build/alternate-registration-schema.json index 45e0814..1350f5c 100644 --- a/build/alternate-registration-schema.json +++ b/build/alternate-registration-schema.json @@ -797,7 +797,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/company-schema.json b/build/company-schema.json index 498858b..4ed0a40 100644 --- a/build/company-schema.json +++ b/build/company-schema.json @@ -629,7 +629,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/control-statement-schema.json b/build/control-statement-schema.json index 851a0b8..9cc0268 100644 --- a/build/control-statement-schema.json +++ b/build/control-statement-schema.json @@ -1083,7 +1083,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/filing-schema.json b/build/filing-schema.json index 9fc7938..e798bc1 100644 --- a/build/filing-schema.json +++ b/build/filing-schema.json @@ -811,7 +811,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/gazette-notice-schema.json b/build/gazette-notice-schema.json index c3414c4..6973e5f 100644 --- a/build/gazette-notice-schema.json +++ b/build/gazette-notice-schema.json @@ -1441,7 +1441,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/licence-schema.json b/build/licence-schema.json index 6be8bfc..2d26c61 100644 --- a/build/licence-schema.json +++ b/build/licence-schema.json @@ -819,7 +819,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/register-entry-schema.json b/build/register-entry-schema.json index 4a2db65..d41613a 100644 --- a/build/register-entry-schema.json +++ b/build/register-entry-schema.json @@ -295,7 +295,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/sanctioned-entity-schema.json b/build/sanctioned-entity-schema.json index c8236ae..2bcb58d 100644 --- a/build/sanctioned-entity-schema.json +++ b/build/sanctioned-entity-schema.json @@ -293,7 +293,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/subsequent-registration-schema.json b/build/subsequent-registration-schema.json index 7caadeb..cb635a7 100644 --- a/build/subsequent-registration-schema.json +++ b/build/subsequent-registration-schema.json @@ -798,7 +798,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/supplier-relationship-schema.json b/build/supplier-relationship-schema.json index 4a988b8..1f1e608 100644 --- a/build/supplier-relationship-schema.json +++ b/build/supplier-relationship-schema.json @@ -791,7 +791,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/build/trademark-registration-schema.json b/build/trademark-registration-schema.json index 9eb7e62..c9cdc93 100644 --- a/build/trademark-registration-schema.json +++ b/build/trademark-registration-schema.json @@ -906,7 +906,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string", diff --git a/schemas/includes/industry-code.json b/schemas/includes/industry-code.json index 4db2d93..9bf69ad 100644 --- a/schemas/includes/industry-code.json +++ b/schemas/includes/industry-code.json @@ -7,7 +7,9 @@ "type": "string" }, "code": { - "type": "string" + "type": "string", + "minLength": 1, + "pattern": "[a-zA-Z0-9]" }, "code_scheme_id": { "type": "string",