diff --git a/content_schemas/allowed_document_types.yml b/content_schemas/allowed_document_types.yml index 520a1a91f..5af4274db 100644 --- a/content_schemas/allowed_document_types.yml +++ b/content_schemas/allowed_document_types.yml @@ -98,6 +98,7 @@ - ministerial_role - ministers_index - modern_slavery_statement +- mock_spike_finder_document - national - national_statistics - national_statistics_announcement diff --git a/content_schemas/dist/formats/generic/frontend/schema.json b/content_schemas/dist/formats/generic/frontend/schema.json index f098dd074..74a5b6470 100644 --- a/content_schemas/dist/formats/generic/frontend/schema.json +++ b/content_schemas/dist/formats/generic/frontend/schema.json @@ -134,6 +134,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/generic/notification/schema.json b/content_schemas/dist/formats/generic/notification/schema.json index ccc471a05..1f0c2bbab 100644 --- a/content_schemas/dist/formats/generic/notification/schema.json +++ b/content_schemas/dist/formats/generic/notification/schema.json @@ -158,6 +158,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/generic/publisher_v2/schema.json b/content_schemas/dist/formats/generic/publisher_v2/schema.json index ab2dfbde0..07a215fcd 100644 --- a/content_schemas/dist/formats/generic/publisher_v2/schema.json +++ b/content_schemas/dist/formats/generic/publisher_v2/schema.json @@ -144,6 +144,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/generic_with_external_related_links/frontend/schema.json b/content_schemas/dist/formats/generic_with_external_related_links/frontend/schema.json index a8687c39f..2a99d679a 100644 --- a/content_schemas/dist/formats/generic_with_external_related_links/frontend/schema.json +++ b/content_schemas/dist/formats/generic_with_external_related_links/frontend/schema.json @@ -134,6 +134,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/generic_with_external_related_links/notification/schema.json b/content_schemas/dist/formats/generic_with_external_related_links/notification/schema.json index ab5927e1b..475d3143f 100644 --- a/content_schemas/dist/formats/generic_with_external_related_links/notification/schema.json +++ b/content_schemas/dist/formats/generic_with_external_related_links/notification/schema.json @@ -158,6 +158,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/generic_with_external_related_links/publisher_v2/schema.json b/content_schemas/dist/formats/generic_with_external_related_links/publisher_v2/schema.json index 435112232..5c6ace094 100644 --- a/content_schemas/dist/formats/generic_with_external_related_links/publisher_v2/schema.json +++ b/content_schemas/dist/formats/generic_with_external_related_links/publisher_v2/schema.json @@ -144,6 +144,7 @@ "ministerial_role", "ministers_index", "modern_slavery_statement", + "mock_spike_finder_document", "national", "national_statistics", "national_statistics_announcement", diff --git a/content_schemas/dist/formats/specialist_document/frontend/schema.json b/content_schemas/dist/formats/specialist_document/frontend/schema.json index 5fc842bfc..6474c713d 100644 --- a/content_schemas/dist/formats/specialist_document/frontend/schema.json +++ b/content_schemas/dist/formats/specialist_document/frontend/schema.json @@ -57,6 +57,7 @@ "marine_equipment_approved_recommendation", "marine_notice", "medical_safety_alert", + "mock_spike_finder_document", "product_safety_alert_report_recall", "protected_food_drink_name", "raib_report", @@ -707,6 +708,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2713,6 +2717,32 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "facet_one_value_one", + "facet_one_value_two" + ] + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string", + "enum": [ + "facet_two_value_one", + "facet_two_value_two" + ] + } + } + }, "nested_headers": { "type": "array", "items": { diff --git a/content_schemas/dist/formats/specialist_document/notification/schema.json b/content_schemas/dist/formats/specialist_document/notification/schema.json index 713b0383a..8f1ad6328 100644 --- a/content_schemas/dist/formats/specialist_document/notification/schema.json +++ b/content_schemas/dist/formats/specialist_document/notification/schema.json @@ -81,6 +81,7 @@ "marine_equipment_approved_recommendation", "marine_notice", "medical_safety_alert", + "mock_spike_finder_document", "product_safety_alert_report_recall", "protected_food_drink_name", "raib_report", @@ -795,6 +796,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2814,6 +2818,32 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "facet_one_value_one", + "facet_one_value_two" + ] + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string", + "enum": [ + "facet_two_value_one", + "facet_two_value_two" + ] + } + } + }, "multiple_content_types": { "type": "array", "items": { 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 6495aafaf..60a2801a4 100644 --- a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json +++ b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json @@ -67,6 +67,7 @@ "marine_equipment_approved_recommendation", "marine_notice", "medical_safety_alert", + "mock_spike_finder_document", "product_safety_alert_report_recall", "protected_food_drink_name", "raib_report", @@ -631,6 +632,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2511,6 +2515,32 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "facet_one_value_one", + "facet_one_value_two" + ] + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string", + "enum": [ + "facet_two_value_one", + "facet_two_value_two" + ] + } + } + }, "multiple_content_types": { "type": "array", "items": { diff --git a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet index 5337b2fc9..9e1b3476b 100644 --- a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet +++ b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet @@ -71,6 +71,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata", }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata", + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata", }, @@ -2169,6 +2172,32 @@ }, }, }, + mock_spike_finder_document_metadata: { + type: "object", + additionalProperties: false, + properties: { + bulk_published: { + type: "boolean", + }, + mock_spike_finder_document_facet_one: { + type: "array", + items: { + type: "string", + enum: [ + "facet_one_value_one", + "facet_one_value_two" + ], + }, + }, + mock_spike_finder_document_facet_two: { + type: "string", + enum: [ + "facet_two_value_one", + "facet_two_value_two" + ] + }, + }, + }, product_safety_alert_report_recall_metadata: { type: "object", additionalProperties: false, diff --git a/content_schemas/formats/specialist_document.jsonnet b/content_schemas/formats/specialist_document.jsonnet index 122513ad9..e0eda4e3b 100644 --- a/content_schemas/formats/specialist_document.jsonnet +++ b/content_schemas/formats/specialist_document.jsonnet @@ -23,6 +23,7 @@ "marine_equipment_approved_recommendation", "marine_notice", "medical_safety_alert", + "mock_spike_finder_document", "product_safety_alert_report_recall", "protected_food_drink_name", "raib_report",