From 17b69980c0748c860f245721fa98ea440803bb2c Mon Sep 17 00:00:00 2001 From: kashifatcha Date: Thu, 19 Dec 2024 14:18:38 +0000 Subject: [PATCH] Make changes to TCRD finder --- .../specialist_document/frontend/schema.json | 15 ++++++++++++--- .../specialist_document/notification/schema.json | 15 ++++++++++++--- .../specialist_document/publisher_v2/schema.json | 15 ++++++++++++--- .../definitions/_specialist_document.jsonnet | 15 ++++++++++++--- 4 files changed, 48 insertions(+), 12 deletions(-) diff --git a/content_schemas/dist/formats/specialist_document/frontend/schema.json b/content_schemas/dist/formats/specialist_document/frontend/schema.json index cb47f3a86..3bbec0168 100644 --- a/content_schemas/dist/formats/specialist_document/frontend/schema.json +++ b/content_schemas/dist/formats/specialist_document/frontend/schema.json @@ -2041,17 +2041,26 @@ "additionalProperties": false, "properties": { "case_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "decision_subject": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "first_published_at": { "type": "string", "pattern": "^[1-9][0-9]{3}[-/](0[1-9]|1[0-2])[-/](0[1-9]|[12][0-9]|3[0-1])$" }, "outcome_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "regions": { "type": "array", diff --git a/content_schemas/dist/formats/specialist_document/notification/schema.json b/content_schemas/dist/formats/specialist_document/notification/schema.json index 189019118..d37ea7ba4 100644 --- a/content_schemas/dist/formats/specialist_document/notification/schema.json +++ b/content_schemas/dist/formats/specialist_document/notification/schema.json @@ -2182,17 +2182,26 @@ "additionalProperties": false, "properties": { "case_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "decision_subject": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "first_published_at": { "type": "string", "pattern": "^[1-9][0-9]{3}[-/](0[1-9]|1[0-2])[-/](0[1-9]|[12][0-9]|3[0-1])$" }, "outcome_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "regions": { "type": "array", diff --git a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json index faf98f103..dfc24d0d6 100644 --- a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json +++ b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json @@ -1874,17 +1874,26 @@ "additionalProperties": false, "properties": { "case_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "decision_subject": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "first_published_at": { "type": "string", "pattern": "^[1-9][0-9]{3}[-/](0[1-9]|1[0-2])[-/](0[1-9]|[12][0-9]|3[0-1])$" }, "outcome_type": { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, "regions": { "type": "array", diff --git a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet index 6297bc716..1934cd323 100644 --- a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet +++ b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet @@ -1162,7 +1162,10 @@ additionalProperties: false, properties: { "decision_subject": { - "type": "string", + type: "array", + items: { + type: "string", + }, }, regions: { type: "array", @@ -1171,10 +1174,16 @@ }, }, "case_type": { - "type": "string", + type: "array", + items: { + type: "string", + }, }, "outcome_type": { - "type": "string", + type: "array", + items: { + type: "string", + }, }, first_published_at: { type: "string",