From 66352a54ff8b6c35087bce125b72e69c6b44a50f Mon Sep 17 00:00:00 2001 From: Ryan Brown Date: Wed, 3 Jul 2024 11:08:52 +0100 Subject: [PATCH] Add Publishing API content schema for marine life saving appliance service stations --- content_schemas/allowed_document_types.yml | 1 + .../dist/formats/generic/frontend/schema.json | 1 + .../formats/generic/notification/schema.json | 1 + .../formats/generic/publisher_v2/schema.json | 1 + .../frontend/schema.json | 1 + .../notification/schema.json | 1 + .../publisher_v2/schema.json | 1 + .../specialist_document/frontend/schema.json | 119 +++++ .../notification/schema.json | 119 +++++ .../publisher_v2/schema.json | 119 +++++ ...g-maritime-appliance-service-stations.json | 429 ++++++++++++++++++ .../definitions/_specialist_document.jsonnet | 118 +++++ .../formats/specialist_document.jsonnet | 1 + 13 files changed, 912 insertions(+) create mode 100644 content_schemas/examples/specialist_document/frontend/life-saving-maritime-appliance-service-stations.json diff --git a/content_schemas/allowed_document_types.yml b/content_schemas/allowed_document_types.yml index 6a6867b06..65049abcf 100644 --- a/content_schemas/allowed_document_types.yml +++ b/content_schemas/allowed_document_types.yml @@ -81,6 +81,7 @@ - licence - license_finder - licence_transaction +- life_saving_maritime_appliance_service_station - link_collection - local_transaction - maib_report diff --git a/content_schemas/dist/formats/generic/frontend/schema.json b/content_schemas/dist/formats/generic/frontend/schema.json index 5b5c3c671..1f33926da 100644 --- a/content_schemas/dist/formats/generic/frontend/schema.json +++ b/content_schemas/dist/formats/generic/frontend/schema.json @@ -117,6 +117,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", diff --git a/content_schemas/dist/formats/generic/notification/schema.json b/content_schemas/dist/formats/generic/notification/schema.json index 3a30fca54..f9e14383d 100644 --- a/content_schemas/dist/formats/generic/notification/schema.json +++ b/content_schemas/dist/formats/generic/notification/schema.json @@ -141,6 +141,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", diff --git a/content_schemas/dist/formats/generic/publisher_v2/schema.json b/content_schemas/dist/formats/generic/publisher_v2/schema.json index c66057073..35bf9ddaf 100644 --- a/content_schemas/dist/formats/generic/publisher_v2/schema.json +++ b/content_schemas/dist/formats/generic/publisher_v2/schema.json @@ -127,6 +127,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", 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 b77694f61..1efac474d 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 @@ -117,6 +117,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", 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 79761e686..fe7f28f8e 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 @@ -141,6 +141,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", 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 d5dd40e80..7acf29cc2 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 @@ -127,6 +127,7 @@ "licence", "license_finder", "licence_transaction", + "life_saving_maritime_appliance_service_station", "link_collection", "local_transaction", "maib_report", diff --git a/content_schemas/dist/formats/specialist_document/frontend/schema.json b/content_schemas/dist/formats/specialist_document/frontend/schema.json index eb5590ca6..0e9ab7853 100644 --- a/content_schemas/dist/formats/specialist_document/frontend/schema.json +++ b/content_schemas/dist/formats/specialist_document/frontend/schema.json @@ -52,6 +52,7 @@ "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", @@ -689,6 +690,9 @@ { "$ref": "#/definitions/farming_grant_metadata" }, + { + "$ref": "#/definitions/life_saving_maritime_appliance_service_station_metadata" + }, { "$ref": "#/definitions/maib_report_metadata" }, @@ -2325,6 +2329,121 @@ } } }, + "life_saving_maritime_appliance_service_station_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "life_saving_maritime_appliance_manufacturer": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "autoflug", + "arimar", + "ausmar", + "avon", + "baltic", + "beaufort", + "beaufort-canada", + "besto-seafit", + "bombard-liferafts", + "callegari", + "crewsaver", + "csm-liferafts-shanghai-star", + "delta-lifejackets", + "delta-ribs", + "dsb", + "duarry", + "eurovinil", + "fujikura-mes", + "halmatic-ribs", + "hansen-protection-uk", + "harding-watercraft-ribs", + "international-safety-group", + "isp-challenger", + "jiangsu-haining", + "k2-lifejackets", + "ki-elements-lifejackets", + "lalizas", + "lifeguard", + "liferaft-systems-australia", + "marin-ark-1", + "marin-ark-2", + "maritime-partner-craft", + "matchau-marine", + "mulder-and-rijke", + "mullion", + "narwhal", + "ningbo-zhenhua", + "ningbo-haifeng", + "ningbo-neptune", + "norsafe-boats", + "ocean-safety-own-brand", + "ocean-safety-remploy-brand", + "ocean-safety-liferafts", + "parmaris", + "plastimo-lifejackets", + "revere", + "rfd", + "rfd-toyo", + "rtk-lifejackets", + "sea-safe-liferafts", + "seago", + "seapro-lifejackets", + "seatec", + "selantic", + "shanghai-cunhong", + "shanghai-haian", + "shanghai-huaxiong", + "shanghai-youlong", + "smrt", + "spinlock", + "survitec-dbc", + "unitor", + "uzemik", + "viking", + "wintec-baltic", + "wintec-isp", + "yantai-huayang", + "zodiac" + ] + } + }, + "life_saving_maritime_appliance_service_station_regions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "east-anglia", + "east-midlands", + "north-east-england", + "north-west-england", + "south-east-england", + "south-west-england", + "west-midlands", + "yorkshire-and-the-humber", + "scotland", + "wales" + ] + } + }, + "life_saving_maritime_appliance_type": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lifejackets", + "liferafts", + "marine-evacuation-system", + "inflated-rescue-boats" + ] + } + } + } + }, "locale": { "type": "string", "enum": [ diff --git a/content_schemas/dist/formats/specialist_document/notification/schema.json b/content_schemas/dist/formats/specialist_document/notification/schema.json index 98d3fac7b..162e9f438 100644 --- a/content_schemas/dist/formats/specialist_document/notification/schema.json +++ b/content_schemas/dist/formats/specialist_document/notification/schema.json @@ -76,6 +76,7 @@ "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", @@ -777,6 +778,9 @@ { "$ref": "#/definitions/farming_grant_metadata" }, + { + "$ref": "#/definitions/life_saving_maritime_appliance_service_station_metadata" + }, { "$ref": "#/definitions/maib_report_metadata" }, @@ -2426,6 +2430,121 @@ } } }, + "life_saving_maritime_appliance_service_station_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "life_saving_maritime_appliance_manufacturer": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "autoflug", + "arimar", + "ausmar", + "avon", + "baltic", + "beaufort", + "beaufort-canada", + "besto-seafit", + "bombard-liferafts", + "callegari", + "crewsaver", + "csm-liferafts-shanghai-star", + "delta-lifejackets", + "delta-ribs", + "dsb", + "duarry", + "eurovinil", + "fujikura-mes", + "halmatic-ribs", + "hansen-protection-uk", + "harding-watercraft-ribs", + "international-safety-group", + "isp-challenger", + "jiangsu-haining", + "k2-lifejackets", + "ki-elements-lifejackets", + "lalizas", + "lifeguard", + "liferaft-systems-australia", + "marin-ark-1", + "marin-ark-2", + "maritime-partner-craft", + "matchau-marine", + "mulder-and-rijke", + "mullion", + "narwhal", + "ningbo-zhenhua", + "ningbo-haifeng", + "ningbo-neptune", + "norsafe-boats", + "ocean-safety-own-brand", + "ocean-safety-remploy-brand", + "ocean-safety-liferafts", + "parmaris", + "plastimo-lifejackets", + "revere", + "rfd", + "rfd-toyo", + "rtk-lifejackets", + "sea-safe-liferafts", + "seago", + "seapro-lifejackets", + "seatec", + "selantic", + "shanghai-cunhong", + "shanghai-haian", + "shanghai-huaxiong", + "shanghai-youlong", + "smrt", + "spinlock", + "survitec-dbc", + "unitor", + "uzemik", + "viking", + "wintec-baltic", + "wintec-isp", + "yantai-huayang", + "zodiac" + ] + } + }, + "life_saving_maritime_appliance_service_station_regions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "east-anglia", + "east-midlands", + "north-east-england", + "north-west-england", + "south-east-england", + "south-west-england", + "west-midlands", + "yorkshire-and-the-humber", + "scotland", + "wales" + ] + } + }, + "life_saving_maritime_appliance_type": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lifejackets", + "liferafts", + "marine-evacuation-system", + "inflated-rescue-boats" + ] + } + } + } + }, "locale": { "type": "string", "enum": [ 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 b48c2658d..e15a3a1a1 100644 --- a/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json +++ b/content_schemas/dist/formats/specialist_document/publisher_v2/schema.json @@ -62,6 +62,7 @@ "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", @@ -613,6 +614,9 @@ { "$ref": "#/definitions/farming_grant_metadata" }, + { + "$ref": "#/definitions/life_saving_maritime_appliance_service_station_metadata" + }, { "$ref": "#/definitions/maib_report_metadata" }, @@ -2123,6 +2127,121 @@ } } }, + "life_saving_maritime_appliance_service_station_metadata": { + "type": "object", + "additionalProperties": false, + "properties": { + "bulk_published": { + "type": "boolean" + }, + "life_saving_maritime_appliance_manufacturer": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "autoflug", + "arimar", + "ausmar", + "avon", + "baltic", + "beaufort", + "beaufort-canada", + "besto-seafit", + "bombard-liferafts", + "callegari", + "crewsaver", + "csm-liferafts-shanghai-star", + "delta-lifejackets", + "delta-ribs", + "dsb", + "duarry", + "eurovinil", + "fujikura-mes", + "halmatic-ribs", + "hansen-protection-uk", + "harding-watercraft-ribs", + "international-safety-group", + "isp-challenger", + "jiangsu-haining", + "k2-lifejackets", + "ki-elements-lifejackets", + "lalizas", + "lifeguard", + "liferaft-systems-australia", + "marin-ark-1", + "marin-ark-2", + "maritime-partner-craft", + "matchau-marine", + "mulder-and-rijke", + "mullion", + "narwhal", + "ningbo-zhenhua", + "ningbo-haifeng", + "ningbo-neptune", + "norsafe-boats", + "ocean-safety-own-brand", + "ocean-safety-remploy-brand", + "ocean-safety-liferafts", + "parmaris", + "plastimo-lifejackets", + "revere", + "rfd", + "rfd-toyo", + "rtk-lifejackets", + "sea-safe-liferafts", + "seago", + "seapro-lifejackets", + "seatec", + "selantic", + "shanghai-cunhong", + "shanghai-haian", + "shanghai-huaxiong", + "shanghai-youlong", + "smrt", + "spinlock", + "survitec-dbc", + "unitor", + "uzemik", + "viking", + "wintec-baltic", + "wintec-isp", + "yantai-huayang", + "zodiac" + ] + } + }, + "life_saving_maritime_appliance_service_station_regions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "east-anglia", + "east-midlands", + "north-east-england", + "north-west-england", + "south-east-england", + "south-west-england", + "west-midlands", + "yorkshire-and-the-humber", + "scotland", + "wales" + ] + } + }, + "life_saving_maritime_appliance_type": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lifejackets", + "liferafts", + "marine-evacuation-system", + "inflated-rescue-boats" + ] + } + } + } + }, "locale": { "type": "string", "enum": [ diff --git a/content_schemas/examples/specialist_document/frontend/life-saving-maritime-appliance-service-stations.json b/content_schemas/examples/specialist_document/frontend/life-saving-maritime-appliance-service-stations.json new file mode 100644 index 000000000..0cbc01975 --- /dev/null +++ b/content_schemas/examples/specialist_document/frontend/life-saving-maritime-appliance-service-stations.json @@ -0,0 +1,429 @@ +{ + "content_id": "49f47764-2b1b-4b0d-9164-4aa6b42a8b63", + "base_path": "/service-life-saving-maritime-appliances/example-document", + "title": "Example document", + "description": "This is the summary of example document", + "schema_name": "specialist_document", + "document_type": "life_saving_maritime_appliance_service_station", + "publishing_app": "specialist-publisher", + "rendering_app": "government-frontend", + "locale": "en", + "phase": "live", + "links": { + "organisations": [ + { + "content_id": "23a24aa8-1711-42b6-bf6b-47af0f230295", + "title": "Maritime and Coastguard Agency", + "locale": "en", + "analytics_identifier": "EA78", + "api_path": "/api/content/government/organisations/maritime-and-coastguard-agency", + "base_path": "/government/organisations/maritime-and-coastguard-agency", + "document_type": "organisation", + "schema_name": "organisation", + "withdrawn": false, + "details": { + "logo": { + "crest": "single-identity", + "formatted_title": "Maritime \u0026amp;\u003cbr/\u003eCoastguard \u003cbr/\u003eAgency" + }, + "brand": "department-for-transport", + "default_news_image": { + "url": "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/default_news_organisation_image_data/file/563/s300_coastguard-coordination-centre.jpg", + "high_resolution_url": "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/default_news_organisation_image_data/file/563/s960_coastguard-coordination-centre.jpg" + }, + "organisation_govuk_status": { + "url": null, + "status": "live", + "updated_at": null + } + }, + "links": {}, + "api_url": "https://www.integration.publishing.service.gov.uk/api/content/government/organisations/maritime-and-coastguard-agency", + "web_url": "https://www.integration.publishing.service.gov.uk/government/organisations/maritime-and-coastguard-agency" + }, + { + "analytics_identifier": "EA1079", + "api_path": "/api/content/government/organisations/animal-and-plant-health-agency", + "base_path": "/government/organisations/animal-and-plant-health-agency", + "content_id": "4ad67f14-6f9c-4fa4-80ab-687b6d81ea6f", + "description": null, + "document_type": "organisation", + "locale": "en", + "public_updated_at": "2022-08-04T08:51:52.000+00:00", + "schema_name": "organisation", + "title": "Animal and Plant Health Agency", + "withdrawn": false, + "details": { + "brand": "department-for-environment-food-rural-affairs", + "logo": { + "formatted_title": "Animal &
Plant Health
Agency", + "crest": "single-identity" + } + }, + "links": { + }, + "api_url": "https://www.gov.uk/api/content/government/organisations/animal-and-plant-health-agency", + "web_url": "https://www.gov.uk/government/organisations/animal-and-plant-health-agency" + } + ], + "finder": [ + { + "analytics_identifier": null, + "api_path": "/api/content/service-life-saving-maritime-appliances", + "base_path": "/service-life-saving-maritime-appliances", + "content_id": "6e374e86-bbe2-40c9-9144-ba3035e69b30", + "description": "Find Maritime and Coastguard Agency-approved service stations for your inflatable life-saving equipment.", + "document_type": "finder", + "locale": "en", + "public_updated_at": "2017-03-15T14:44:21Z", + "schema_name": "finder", + "title": "Find a service station for your inflatable life-saving appliances", + "withdrawn": false, + "details": { + "facets": [ + { + "key": "life_saving_maritime_appliance_service_station_regions", + "name": "Regions in the UK", + "short_name": "region", + "type": "text", + "preposition": "in region", + "display_as_result_metadata": true, + "filterable": true, + "allowed_values": [ + {"label": "East Anglia", "value": "east-anglia"}, + {"label": "East Midlands", "value": "east-midlands"}, + {"label": "North east England", "value": "north-east-england"}, + {"label": "North west England", "value": "north-west-england"}, + {"label": "South east England (including London)", "value": "south-east-england"}, + {"label": "South west England", "value": "south-west-england"}, + {"label": "West Midlands", "value": "west-midlands"}, + {"label": "Yorkshire and The Humber", "value": "yorkshire-and-the-humber"}, + {"label": "Scotland", "value": "scotland"}, + {"label": "Wales", "value": "wales"} + ] + }, + { + "key": "life_saving_maritime_appliance_type", + "name": "Appliance type", + "type": "text", + "preposition": "appliance", + "display_as_result_metadata": true, + "filterable": true, + "allowed_values": [ + {"label": "Lifejackets", "value": "lifejackets"}, + {"label": "Liferafts", "value": "liferafts"}, + {"label": "Marine evacuation system (MES)", "value": "marine-evacuation-system"}, + {"label": "Inflated rescue boats", "value": "inflated-rescue-boats"} + ] + }, + { + "key": "life_saving_maritime_appliance_manufacturer", + "name": "Appliance manufacturer", + "type": "text", + "preposition": "manufactured by", + "display_as_result_metadata": true, + "filterable": true, + "allowed_values": [ + { + "label": "Autoflug", + "value": "autoflug" + }, + { + "label": "Arimar", + "value": "arimar" + }, + { + "label": "Ausmar", + "value": "ausmar" + }, + { + "label": "Avon", + "value": "avon" + }, + { + "label": "Baltic", + "value": "baltic" + }, + { + "label": "Beaufort", + "value": "beaufort" + }, + { + "label": "Beaufort Canada", + "value": "beaufort-canada" + }, + { + "label": "Besto Seafit", + "value": "besto-seafit" + }, + { + "label": "Bombard Liferafts", + "value": "bombard-liferafts" + }, + { + "label": "Callegari", + "value": "callegari" + }, + { + "label": "Crewsaver", + "value": "crewsaver" + }, + { + "label": "CSM Liferafts (Shanghai Star)", + "value": "csm-liferafts-shanghai-star" + }, + { + "label": "Delta Lifejackets", + "value": "delta-lifejackets" + }, + { + "label": "Delta RIBs", + "value": "delta-ribs" + }, + { + "label": "DSB", + "value": "dsb" + }, + { + "label": "Duarry", + "value": "duarry" + }, + { + "label": "Eurovinil", + "value": "eurovinil" + }, + { + "label": "Fujikura MES", + "value": "fujikura-mes" + }, + { + "label": "Halmatic RIBs", + "value": "halmatic-ribs" + }, + { + "label": "Hansen Protection - UK", + "value": "hansen-protection-uk" + }, + { + "label": "Harding Watercraft RIBs", + "value": "harding-watercraft-ribs" + }, + { + "label": "International Safety Group", + "value": "international-safety-group" + }, + { + "label": "ISP Challenger", + "value": "isp-challenger" + }, + { + "label": "Jiangsu Haining", + "value": "jiangsu-haining" + }, + { + "label": "K2 Lifejackets", + "value": "k2-lifejackets" + }, + { + "label": "KI-Elements Lifejackets", + "value": "ki-elements-lifejackets" + }, + { + "label": "Lalizas", + "value": "lalizas" + }, + { + "label": "Lifeguard", + "value": "lifeguard" + }, + { + "label": "Liferaft Systems Australia", + "value": "liferaft-systems-australia" + }, + { + "label": "Marin Ark 1", + "value": "marin-ark-1" + }, + { + "label": "Marin Ark 2", + "value": "marin-ark-2" + }, + { + "label": "Maritime Partner Craft", + "value": "maritime-partner-craft" + }, + { + "label": "Matchau Marine", + "value": "matchau-marine" + }, + { + "label": "Mulder and Rijke", + "value": "mulder-and-rijke" + }, + { + "label": "Mullion", + "value": "mullion" + }, + { + "label": "Narwhal", + "value": "narwhal" + }, + { + "label": "Ningbo Zhenhua", + "value": "ningbo-zhenhua" + }, + { + "label": "Ningbo Haifeng", + "value": "ningbo-haifeng" + }, + { + "label": "Ningbo Neptune", + "value": "ningbo-neptune" + }, + { + "label": "Norsafe Boats", + "value": "norsafe-boats" + }, + { + "label": "Ocean Safety (own brand)", + "value": "ocean-safety-own-brand" + }, + { + "label": "Ocean Safety (Remploy brand)", + "value": "ocean safety-remploy-brand" + }, + { + "label": "Ocean Safety Liferafts", + "value": "ocean-safety-liferafts" + }, + { + "label": "Parmaris", + "value": "parmaris" + }, + { + "label": "Plastimo Lifejackets", + "value": "plastimo-lifejackets" + }, + { + "label": "Revere", + "value": "revere" + }, + { + "label": "RFD", + "value": "rfd" + }, + { + "label": "RFD-Toyo", + "value": "rfd-toyo" + }, + { + "label": "RTK Lifejackets", + "value": "rtk-lifejackets" + }, + { + "label": "Sea Safe Liferafts", + "value": "sea-safe-liferafts" + }, + { + "label": "Seago", + "value": "seago" + }, + { + "label": "Seapro Lifejackets", + "value": "seapro-lifejackets" + }, + { + "label": "Seatec", + "value": "seatec" + }, + { + "label": "Selantic", + "value": "selantic" + }, + { + "label": "Shanghai Cunhong", + "value": "shanghai-cunhong" + }, + { + "label": "Shanghai Haian", + "value": "shanghai-haian" + }, + { + "label": "Shanghai Huaxiong", + "value": "shanghai-huaxiong" + }, + { + "label": "Shanghai Youlong", + "value": "shanghai-youlong" + }, + { + "label": "SMRT", + "value": "smrt" + }, + { + "label": "Spinlock", + "value": "spinlock" + }, + { + "label": "Survitec - DBC", + "value": "survitec-dbc" + }, + { + "label": "Unitor", + "value": "unitor" + }, + { + "label": "Uzemik", + "value": "uzemik" + }, + { + "label": "Viking", + "value": "viking" + }, + { + "label": "Wintec Baltic", + "value": "wintec-baltic" + }, + { + "label": "Wintec ISP", + "value": "wintec-isp" + }, + { + "label": "Yantai Huayang", + "value": "yantai-huayang" + }, + { + "label": "Zodiac", + "value": "zodiac" + } + ] + } + ] + }, + "api_url": "https://www.gov.uk/api/content/marine-equipment-approved-recommendations/", + "web_url": "https://www.gov.uk/marine-equipment-approved-recommendations/" + } + ] + }, + "public_updated_at": "2015-07-10T13:09:46+00:00", + "updated_at": "2017-06-30T15:44:11.073Z", + "details": { + "body": "UK approved service stations for International Convention for the Safety of Life at Sea (SOLAS)-standard inflatable life-saving appliances (LSAs).\n", + "metadata": { + "life_saving_maritime_appliance_service_station_regions": [ + "north-east-england", + "west-midlands" + ], + "life_saving_maritime_appliance_type": [ + "lifejackets", + "liferafts" + ], + "life_saving_maritime_appliance_manufacturer": [ + "beaufort", + "besto-seafit" + ] + }, + "max_cache_time": 10, + "temporary_update_type": false + } +} diff --git a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet index e7a94b277..0635f6ce1 100644 --- a/content_schemas/formats/shared/definitions/_specialist_document.jsonnet +++ b/content_schemas/formats/shared/definitions/_specialist_document.jsonnet @@ -56,6 +56,9 @@ { "$ref": "#/definitions/farming_grant_metadata", }, + { + "$ref": "#/definitions/life_saving_maritime_appliance_service_station_metadata", + }, { "$ref": "#/definitions/maib_report_metadata", }, @@ -1858,6 +1861,121 @@ }, }, }, + life_saving_maritime_appliance_service_station_metadata: { + type: "object", + additionalProperties: false, + properties: { + bulk_published: { + type: "boolean", + }, + life_saving_maritime_appliance_service_station_regions: { + type: "array", + items: { + type: "string", + enum: [ + "east-anglia", + "east-midlands", + "north-east-england", + "north-west-england", + "south-east-england", + "south-west-england", + "west-midlands", + "yorkshire-and-the-humber", + "scotland", + "wales", + ], + }, + }, + life_saving_maritime_appliance_manufacturer: { + type: "array", + items: { + type: "string", + enum: [ + "autoflug", + "arimar", + "ausmar", + "avon", + "baltic", + "beaufort", + "beaufort-canada", + "besto-seafit", + "bombard-liferafts", + "callegari", + "crewsaver", + "csm-liferafts-shanghai-star", + "delta-lifejackets", + "delta-ribs", + "dsb", + "duarry", + "eurovinil", + "fujikura-mes", + "halmatic-ribs", + "hansen-protection-uk", + "harding-watercraft-ribs", + "international-safety-group", + "isp-challenger", + "jiangsu-haining", + "k2-lifejackets", + "ki-elements-lifejackets", + "lalizas", + "lifeguard", + "liferaft-systems-australia", + "marin-ark-1", + "marin-ark-2", + "maritime-partner-craft", + "matchau-marine", + "mulder-and-rijke", + "mullion", + "narwhal", + "ningbo-zhenhua", + "ningbo-haifeng", + "ningbo-neptune", + "norsafe-boats", + "ocean-safety-own-brand", + "ocean-safety-remploy-brand", + "ocean-safety-liferafts", + "parmaris", + "plastimo-lifejackets", + "revere", + "rfd", + "rfd-toyo", + "rtk-lifejackets", + "sea-safe-liferafts", + "seago", + "seapro-lifejackets", + "seatec", + "selantic", + "shanghai-cunhong", + "shanghai-haian", + "shanghai-huaxiong", + "shanghai-youlong", + "smrt", + "spinlock", + "survitec-dbc", + "unitor", + "uzemik", + "viking", + "wintec-baltic", + "wintec-isp", + "yantai-huayang", + "zodiac", + ], + }, + }, + life_saving_maritime_appliance_type: { + type: "array", + items: { + type: "string", + enum: [ + "lifejackets", + "liferafts", + "marine-evacuation-system", + "inflated-rescue-boats", + ], + }, + }, + }, + }, maib_report_metadata: { type: "object", additionalProperties: false, diff --git a/content_schemas/formats/specialist_document.jsonnet b/content_schemas/formats/specialist_document.jsonnet index 83644c3f5..5cbd104a7 100644 --- a/content_schemas/formats/specialist_document.jsonnet +++ b/content_schemas/formats/specialist_document.jsonnet @@ -18,6 +18,7 @@ "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",