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..796084bc7 100644 --- a/content_schemas/dist/formats/specialist_document/frontend/schema.json +++ b/content_schemas/dist/formats/specialist_document/frontend/schema.json @@ -32,43 +32,7 @@ "$ref": "#/definitions/details" }, "document_type": { - "type": "string", - "enum": [ - "aaib_report", - "ai_assurance_portfolio_technique", - "algorithmic_transparency_record", - "animal_disease_case", - "asylum_support_decision", - "business_finance_support_scheme", - "cma_case", - "countryside_stewardship_grant", - "drcf_digital_markets_research", - "drug_safety_update", - "employment_appeal_tribunal_decision", - "employment_tribunal_decision", - "esi_fund", - "export_health_certificate", - "farming_grant", - "flood_and_coastal_erosion_risk_management_research_report", - "international_development_fund", - "licence_transaction", - "life_saving_maritime_appliance_service_station", - "maib_report", - "marine_equipment_approved_recommendation", - "marine_notice", - "medical_safety_alert", - "product_safety_alert_report_recall", - "protected_food_drink_name", - "raib_report", - "research_for_development_output", - "residential_property_tribunal_decision", - "service_standard_report", - "statutory_instrument", - "tax_tribunal_decision", - "traffic_commissioner_regulatory_decision", - "utaac_decision", - "veterans_support_organisation" - ] + "type": "string" }, "first_published_at": { "anyOf": [ @@ -707,6 +671,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2713,6 +2680,21 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string" + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string" + } + } + }, "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..21c02efa4 100644 --- a/content_schemas/dist/formats/specialist_document/notification/schema.json +++ b/content_schemas/dist/formats/specialist_document/notification/schema.json @@ -56,43 +56,7 @@ "$ref": "#/definitions/details" }, "document_type": { - "type": "string", - "enum": [ - "aaib_report", - "ai_assurance_portfolio_technique", - "algorithmic_transparency_record", - "animal_disease_case", - "asylum_support_decision", - "business_finance_support_scheme", - "cma_case", - "countryside_stewardship_grant", - "drcf_digital_markets_research", - "drug_safety_update", - "employment_appeal_tribunal_decision", - "employment_tribunal_decision", - "esi_fund", - "export_health_certificate", - "farming_grant", - "flood_and_coastal_erosion_risk_management_research_report", - "international_development_fund", - "licence_transaction", - "life_saving_maritime_appliance_service_station", - "maib_report", - "marine_equipment_approved_recommendation", - "marine_notice", - "medical_safety_alert", - "product_safety_alert_report_recall", - "protected_food_drink_name", - "raib_report", - "research_for_development_output", - "residential_property_tribunal_decision", - "service_standard_report", - "statutory_instrument", - "tax_tribunal_decision", - "traffic_commissioner_regulatory_decision", - "utaac_decision", - "veterans_support_organisation" - ] + "type": "string" }, "email_document_supertype": { "description": "Document supertype grouping intended to power the Whitehall finders and email subscriptions", @@ -795,6 +759,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2814,6 +2781,21 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string" + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string" + } + } + }, "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..f25803992 100644 --- a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json +++ b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json @@ -42,43 +42,7 @@ "$ref": "#/definitions/details" }, "document_type": { - "type": "string", - "enum": [ - "aaib_report", - "ai_assurance_portfolio_technique", - "algorithmic_transparency_record", - "animal_disease_case", - "asylum_support_decision", - "business_finance_support_scheme", - "cma_case", - "countryside_stewardship_grant", - "drcf_digital_markets_research", - "drug_safety_update", - "employment_appeal_tribunal_decision", - "employment_tribunal_decision", - "esi_fund", - "export_health_certificate", - "farming_grant", - "flood_and_coastal_erosion_risk_management_research_report", - "international_development_fund", - "licence_transaction", - "life_saving_maritime_appliance_service_station", - "maib_report", - "marine_equipment_approved_recommendation", - "marine_notice", - "medical_safety_alert", - "product_safety_alert_report_recall", - "protected_food_drink_name", - "raib_report", - "research_for_development_output", - "residential_property_tribunal_decision", - "service_standard_report", - "statutory_instrument", - "tax_tribunal_decision", - "traffic_commissioner_regulatory_decision", - "utaac_decision", - "veterans_support_organisation" - ] + "type": "string" }, "first_published_at": { "$ref": "#/definitions/first_published_at" @@ -631,6 +595,9 @@ { "$ref": "#/definitions/medical_safety_alert_metadata" }, + { + "$ref": "#/definitions/mock_spike_finder_document_metadata" + }, { "$ref": "#/definitions/product_safety_alert_report_recall_metadata" }, @@ -2511,6 +2478,21 @@ } } }, + "mock_spike_finder_document_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "mock_spike_finder_document_facet_one": { + "type": "array", + "items": { + "type": "string" + } + }, + "mock_spike_finder_document_facet_two": { + "type": "string" + } + } + }, "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..096f51482 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,21 @@ }, }, }, + mock_spike_finder_document_metadata: { + type: "object", + additionalProperties: false, + properties: { + mock_spike_finder_document_facet_one: { + type: "array", + items: { + type: "string", + }, + }, + mock_spike_finder_document_facet_two: { + type: "string", + }, + }, + }, 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",