diff --git a/build/accounts-statement-schema.json b/build/accounts-statement-schema.json index 09538268..f3653819 100644 --- a/build/accounts-statement-schema.json +++ b/build/accounts-statement-schema.json @@ -657,6 +657,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -795,6 +796,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -957,6 +959,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/alternate-registration-schema.json b/build/alternate-registration-schema.json index 0955ef04..147a1edf 100644 --- a/build/alternate-registration-schema.json +++ b/build/alternate-registration-schema.json @@ -567,6 +567,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -705,6 +706,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -867,6 +869,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/company-schema.json b/build/company-schema.json index 2bd74c6a..5ccbc9a4 100644 --- a/build/company-schema.json +++ b/build/company-schema.json @@ -399,6 +399,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -537,6 +538,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -699,6 +701,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/control-statement-schema.json b/build/control-statement-schema.json index bbd73a13..74ccf286 100644 --- a/build/control-statement-schema.json +++ b/build/control-statement-schema.json @@ -853,6 +853,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -991,6 +992,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -1153,6 +1155,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/filing-schema.json b/build/filing-schema.json index 2a9c01dd..19c0e95e 100644 --- a/build/filing-schema.json +++ b/build/filing-schema.json @@ -580,6 +580,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -718,6 +719,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -880,6 +882,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/gazette-notice-schema.json b/build/gazette-notice-schema.json index c061fa62..a9bdbd7f 100644 --- a/build/gazette-notice-schema.json +++ b/build/gazette-notice-schema.json @@ -1211,6 +1211,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -1349,6 +1350,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -1511,6 +1513,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/licence-schema.json b/build/licence-schema.json index dda781a3..66e526d9 100644 --- a/build/licence-schema.json +++ b/build/licence-schema.json @@ -589,6 +589,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -727,6 +728,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -889,6 +891,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/register-entry-schema.json b/build/register-entry-schema.json index ac4debff..c828d896 100644 --- a/build/register-entry-schema.json +++ b/build/register-entry-schema.json @@ -366,6 +366,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" @@ -800,6 +801,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -938,6 +940,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] diff --git a/build/sanctioned-entity-schema.json b/build/sanctioned-entity-schema.json index 05524d72..61afa000 100644 --- a/build/sanctioned-entity-schema.json +++ b/build/sanctioned-entity-schema.json @@ -364,6 +364,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" @@ -798,6 +799,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -936,6 +938,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] diff --git a/build/subsequent-registration-schema.json b/build/subsequent-registration-schema.json index bfefb936..31a435bc 100644 --- a/build/subsequent-registration-schema.json +++ b/build/subsequent-registration-schema.json @@ -568,6 +568,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -706,6 +707,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -868,6 +870,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/supplier-relationship-schema.json b/build/supplier-relationship-schema.json index 17fdb007..bff8b1be 100644 --- a/build/supplier-relationship-schema.json +++ b/build/supplier-relationship-schema.json @@ -561,6 +561,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -699,6 +700,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -861,6 +863,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/build/trademark-registration-schema.json b/build/trademark-registration-schema.json index 09d50b9b..5926eb93 100644 --- a/build/trademark-registration-schema.json +++ b/build/trademark-registration-schema.json @@ -676,6 +676,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] @@ -814,6 +815,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] @@ -976,6 +978,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/schemas/includes/alternative-name.json b/schemas/includes/alternative-name.json index 12a6c7ad..549a035a 100644 --- a/schemas/includes/alternative-name.json +++ b/schemas/includes/alternative-name.json @@ -31,6 +31,7 @@ ] } }, + "additionalProperties": false, "required": [ "company_name", "type" diff --git a/schemas/includes/officer.json b/schemas/includes/officer.json index e973e954..d5608f0f 100644 --- a/schemas/includes/officer.json +++ b/schemas/includes/officer.json @@ -67,6 +67,7 @@ } } }, + "additionalProperties": false, "required": [ "name" ] diff --git a/schemas/includes/total-shares.json b/schemas/includes/total-shares.json index a945f4fe..077161f9 100644 --- a/schemas/includes/total-shares.json +++ b/schemas/includes/total-shares.json @@ -11,6 +11,7 @@ "minLength": 1 } }, + "additionalProperties": false, "required": [ "number" ] diff --git a/spec/sample-data/invalid/company/additional-alternative_names.0.con_date.json b/spec/sample-data/invalid/company/additional-alternative_names.0.con_date.json new file mode 100644 index 00000000..68516ad2 --- /dev/null +++ b/spec/sample-data/invalid/company/additional-alternative_names.0.con_date.json @@ -0,0 +1,13 @@ +{ + "name": "Foo Inc Alternative", + "jurisdiction_code": "us_de", + "company_number": "12345", + "alternative_names": [ + { + "company_name": "Foobar Inc", + "type": "trading", + "con_date": "2020-03-04" + } + ], + "retrieved_at": "2018-03-09T12:34:56Z" +} diff --git a/spec/sample-data/invalid/company/additional-officers.0.dob.json b/spec/sample-data/invalid/company/additional-officers.0.dob.json new file mode 100644 index 00000000..4a26098e --- /dev/null +++ b/spec/sample-data/invalid/company/additional-officers.0.dob.json @@ -0,0 +1,12 @@ +{ + "name": "Foo Inc", + "company_number": "12345", + "jurisdiction_code": "ie", + "officers": [ + { + "name": "Fred", + "dob": "1980-02-16" + } + ], + "retrieved_at": "2018-03-09T12:34:56Z" +} diff --git a/spec/sample-data/invalid/company/additional-officers.0.type.json b/spec/sample-data/invalid/company/additional-officers.0.type.json new file mode 100644 index 00000000..cbb12650 --- /dev/null +++ b/spec/sample-data/invalid/company/additional-officers.0.type.json @@ -0,0 +1,12 @@ +{ + "name": "Foo Inc", + "company_number": "12345", + "jurisdiction_code": "ie", + "officers": [ + { + "name": "Fred", + "type": "Company" + } + ], + "retrieved_at": "2018-03-09T12:34:56Z" +} diff --git a/spec/sample-data/invalid/includes/total-shares/additional-foo.json b/spec/sample-data/invalid/includes/total-shares/additional-foo.json new file mode 100644 index 00000000..4f32df9c --- /dev/null +++ b/spec/sample-data/invalid/includes/total-shares/additional-foo.json @@ -0,0 +1,5 @@ +{ + "number": 100, + "share_class": "A", + "foo": "bar" +} diff --git a/spec/sample-data/valid/includes/total-shares-01.json b/spec/sample-data/valid/includes/total-shares-01.json new file mode 100644 index 00000000..8dd2a075 --- /dev/null +++ b/spec/sample-data/valid/includes/total-shares-01.json @@ -0,0 +1,4 @@ +{ + "number": 100, + "share_class": "A" +}