Skip to content

[WHIT-2990] Remove single image from news article schema#3933

Merged
lauraghiorghisor-tw merged 2 commits intomainfrom
contract-news-articles
Mar 18, 2026
Merged

[WHIT-2990] Remove single image from news article schema#3933
lauraghiorghisor-tw merged 2 commits intomainfrom
contract-news-articles

Conversation

@lauraghiorghisor-tw
Copy link
Copy Markdown
Contributor

Follows on from #3890.

Jira

@lauraghiorghisor-tw lauraghiorghisor-tw changed the title Remove single image from news article schema [WHIT-2990] Remove single image from news article schema Mar 10, 2026
@lauraghiorghisor-tw lauraghiorghisor-tw force-pushed the contract-news-articles branch 3 times, most recently from 45aa829 to bae02db Compare March 17, 2026 08:35
uses: alphagov/frontend/.github/workflows/rspec.yml@main
with:
ref: 'main'
ref: 'contract-news-articles'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried everything else first 😅 It's the only way.

{
"type": "lead",
"sources": {
"s960": "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/image_data/file/41447/s960_PTN-D1322-115_960x640.jpg",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, it would be nice if we had these down as media/:id urls rather than legacy path urls... but that can be its own work at a later point. Also noting that most of the examples have alt text which is not currently something we send from whitehall anymore (but it is allowed in the schema, so technically fine here).

Copy link
Copy Markdown
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the examples

Use details.images with sources and type. Also update examples to match the schema.
@lauraghiorghisor-tw lauraghiorghisor-tw merged commit 34496bd into main Mar 18, 2026
44 checks passed
@lauraghiorghisor-tw lauraghiorghisor-tw deleted the contract-news-articles branch March 18, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants