Skip to content

Commit 665c05a

Browse files
Remove single image from news article schema
1 parent 1ad71d5 commit 665c05a

File tree

4 files changed

+0
-153
lines changed

4 files changed

+0
-153
lines changed

content_schemas/dist/formats/news_article/frontend/schema.json

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,6 @@
325325
"government": {
326326
"$ref": "#/definitions/government"
327327
},
328-
"image": {
329-
"$ref": "#/definitions/image"
330-
},
331328
"images": {
332329
"type": "array",
333330
"items": {
@@ -588,53 +585,6 @@
588585
"type": "string",
589586
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$"
590587
},
591-
"image": {
592-
"type": "object",
593-
"required": [
594-
"url"
595-
],
596-
"additionalProperties": false,
597-
"properties": {
598-
"alt_text": {
599-
"type": "string"
600-
},
601-
"caption": {
602-
"anyOf": [
603-
{
604-
"type": "string"
605-
},
606-
{
607-
"type": "null"
608-
}
609-
]
610-
},
611-
"credit": {
612-
"anyOf": [
613-
{
614-
"type": "string"
615-
},
616-
{
617-
"type": "null"
618-
}
619-
]
620-
},
621-
"high_resolution_url": {
622-
"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.",
623-
"type": "string",
624-
"format": "uri"
625-
},
626-
"medium_resolution_url": {
627-
"description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.",
628-
"type": "string",
629-
"format": "uri"
630-
},
631-
"url": {
632-
"description": "URL to the image. The image should be in a suitable resolution for display on the page.",
633-
"type": "string",
634-
"format": "uri"
635-
}
636-
}
637-
},
638588
"image_asset": {
639589
"type": "object",
640590
"required": [

content_schemas/dist/formats/news_article/notification/schema.json

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@
431431
"government": {
432432
"$ref": "#/definitions/government"
433433
},
434-
"image": {
435-
"$ref": "#/definitions/image"
436-
},
437434
"images": {
438435
"type": "array",
439436
"items": {
@@ -707,53 +704,6 @@
707704
},
708705
"uniqueItems": true
709706
},
710-
"image": {
711-
"type": "object",
712-
"required": [
713-
"url"
714-
],
715-
"additionalProperties": false,
716-
"properties": {
717-
"alt_text": {
718-
"type": "string"
719-
},
720-
"caption": {
721-
"anyOf": [
722-
{
723-
"type": "string"
724-
},
725-
{
726-
"type": "null"
727-
}
728-
]
729-
},
730-
"credit": {
731-
"anyOf": [
732-
{
733-
"type": "string"
734-
},
735-
{
736-
"type": "null"
737-
}
738-
]
739-
},
740-
"high_resolution_url": {
741-
"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.",
742-
"type": "string",
743-
"format": "uri"
744-
},
745-
"medium_resolution_url": {
746-
"description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.",
747-
"type": "string",
748-
"format": "uri"
749-
},
750-
"url": {
751-
"description": "URL to the image. The image should be in a suitable resolution for display on the page.",
752-
"type": "string",
753-
"format": "uri"
754-
}
755-
}
756-
},
757707
"image_asset": {
758708
"type": "object",
759709
"required": [

content_schemas/dist/formats/news_article/publisher_v2/schema.json

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@
272272
"government": {
273273
"$ref": "#/definitions/government"
274274
},
275-
"image": {
276-
"$ref": "#/definitions/image"
277-
},
278275
"images": {
279276
"type": "array",
280277
"items": {
@@ -409,53 +406,6 @@
409406
},
410407
"uniqueItems": true
411408
},
412-
"image": {
413-
"type": "object",
414-
"required": [
415-
"url"
416-
],
417-
"additionalProperties": false,
418-
"properties": {
419-
"alt_text": {
420-
"type": "string"
421-
},
422-
"caption": {
423-
"anyOf": [
424-
{
425-
"type": "string"
426-
},
427-
{
428-
"type": "null"
429-
}
430-
]
431-
},
432-
"credit": {
433-
"anyOf": [
434-
{
435-
"type": "string"
436-
},
437-
{
438-
"type": "null"
439-
}
440-
]
441-
},
442-
"high_resolution_url": {
443-
"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.",
444-
"type": "string",
445-
"format": "uri"
446-
},
447-
"medium_resolution_url": {
448-
"description": "URL to a medium resolution version of the image, for use by devices that have high pixel density such as iphone.",
449-
"type": "string",
450-
"format": "uri"
451-
},
452-
"url": {
453-
"description": "URL to the image. The image should be in a suitable resolution for display on the page.",
454-
"type": "string",
455-
"format": "uri"
456-
}
457-
}
458-
},
459409
"image_asset": {
460410
"type": "object",
461411
"required": [

content_schemas/formats/news_article.jsonnet

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
body: {
2424
"$ref": "#/definitions/body",
2525
},
26-
image: {
27-
"$ref": "#/definitions/image",
28-
},
2926
images: {
3027
type: "array",
3128
items: {

0 commit comments

Comments
 (0)