Fix JSON-LD structured data quality: entity encoding, truncation, and schema issues#372
Merged
pethers merged 2 commits intomain-2f13dfa4453c0f8dfrom Feb 20, 2026
Merged
Conversation
…SON-LD, article type, schema version Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Update immigration reform reports from Sweden's Riksdag
Fix JSON-LD structured data quality: entity encoding, truncation, and schema issues
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several structured data defects in the immigration reform article package degraded SEO and broke schema consumers.
Fixes
Breadcrumb truncation (6 article files)
itemListElement[position=3].namewas truncated mid-word (50-char cutoff) in fr, de, he, nl, es, ar articles:HTML entity double-encoding in JSON-LD (4 index files)
application/ld+jsonscripts in en/sv/da/no indexes contained HTML entities that structured data consumers ingest as literal strings:Truncated descriptions in ItemList JSON-LD (index.html, index_sv.html)
Descriptions cut off mid-word (
EU migrat,uppehålls) — completed to full sentences.Wrong article type (index_sv.html)
Immigration reform article classified as
"prospective"→"breaking".Schema versioning (last-generation.json)
Added
"schemaVersion": "2"to disambiguate the realtime-monitor schema from thegenerate-news-enhanced.jsschema, which write different key shapes to the same file.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.