From 1d474ae0e28cc4bcf9432e6a602233f3e6c648a9 Mon Sep 17 00:00:00 2001 From: Laura Ghiorghisor Date: Tue, 10 Mar 2026 09:27:53 +0000 Subject: [PATCH] Remove single `image` from news article schema --- .../formats/news_article/frontend/schema.json | 50 ------------------- .../news_article/notification/schema.json | 50 ------------------- .../news_article/publisher_v2/schema.json | 50 ------------------- content_schemas/formats/news_article.jsonnet | 3 -- 4 files changed, 153 deletions(-) diff --git a/content_schemas/dist/formats/news_article/frontend/schema.json b/content_schemas/dist/formats/news_article/frontend/schema.json index a698fb3db1..28d118eced 100644 --- a/content_schemas/dist/formats/news_article/frontend/schema.json +++ b/content_schemas/dist/formats/news_article/frontend/schema.json @@ -325,9 +325,6 @@ "government": { "$ref": "#/definitions/government" }, - "image": { - "$ref": "#/definitions/image" - }, "images": { "type": "array", "items": { @@ -588,53 +585,6 @@ "type": "string", "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$" }, - "image": { - "type": "object", - "required": [ - "url" - ], - "additionalProperties": false, - "properties": { - "alt_text": { - "type": "string" - }, - "caption": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "credit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "high_resolution_url": { - "description": "URL to a high resolution version of the image, for use by third parties such as Twitter, Facebook or Slack. Used by the machine readable metadata component. Don't use this on user-facing web pages, as it might be very large.", - "type": "string", - "format": "uri" - }, - "medium_resolution_url": { - "description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.", - "type": "string", - "format": "uri" - }, - "url": { - "description": "URL to the image. The image should be in a suitable resolution for display on the page.", - "type": "string", - "format": "uri" - } - } - }, "image_asset": { "type": "object", "required": [ diff --git a/content_schemas/dist/formats/news_article/notification/schema.json b/content_schemas/dist/formats/news_article/notification/schema.json index 651f62de95..6e120d6cc1 100644 --- a/content_schemas/dist/formats/news_article/notification/schema.json +++ b/content_schemas/dist/formats/news_article/notification/schema.json @@ -431,9 +431,6 @@ "government": { "$ref": "#/definitions/government" }, - "image": { - "$ref": "#/definitions/image" - }, "images": { "type": "array", "items": { @@ -707,53 +704,6 @@ }, "uniqueItems": true }, - "image": { - "type": "object", - "required": [ - "url" - ], - "additionalProperties": false, - "properties": { - "alt_text": { - "type": "string" - }, - "caption": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "credit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "high_resolution_url": { - "description": "URL to a high resolution version of the image, for use by third parties such as Twitter, Facebook or Slack. Used by the machine readable metadata component. Don't use this on user-facing web pages, as it might be very large.", - "type": "string", - "format": "uri" - }, - "medium_resolution_url": { - "description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.", - "type": "string", - "format": "uri" - }, - "url": { - "description": "URL to the image. The image should be in a suitable resolution for display on the page.", - "type": "string", - "format": "uri" - } - } - }, "image_asset": { "type": "object", "required": [ diff --git a/content_schemas/dist/formats/news_article/publisher_v2/schema.json b/content_schemas/dist/formats/news_article/publisher_v2/schema.json index b09814d8d7..53b21f522f 100644 --- a/content_schemas/dist/formats/news_article/publisher_v2/schema.json +++ b/content_schemas/dist/formats/news_article/publisher_v2/schema.json @@ -272,9 +272,6 @@ "government": { "$ref": "#/definitions/government" }, - "image": { - "$ref": "#/definitions/image" - }, "images": { "type": "array", "items": { @@ -409,53 +406,6 @@ }, "uniqueItems": true }, - "image": { - "type": "object", - "required": [ - "url" - ], - "additionalProperties": false, - "properties": { - "alt_text": { - "type": "string" - }, - "caption": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "credit": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "high_resolution_url": { - "description": "URL to a high resolution version of the image, for use by third parties such as Twitter, Facebook or Slack. Used by the machine readable metadata component. Don't use this on user-facing web pages, as it might be very large.", - "type": "string", - "format": "uri" - }, - "medium_resolution_url": { - "description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.", - "type": "string", - "format": "uri" - }, - "url": { - "description": "URL to the image. The image should be in a suitable resolution for display on the page.", - "type": "string", - "format": "uri" - } - } - }, "image_asset": { "type": "object", "required": [ diff --git a/content_schemas/formats/news_article.jsonnet b/content_schemas/formats/news_article.jsonnet index 004a38dd45..64f3012a94 100644 --- a/content_schemas/formats/news_article.jsonnet +++ b/content_schemas/formats/news_article.jsonnet @@ -23,9 +23,6 @@ body: { "$ref": "#/definitions/body", }, - image: { - "$ref": "#/definitions/image", - }, images: { type: "array", items: {