You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
schema/json-ld-valid: nested ImageObject in Article.image is reported as invalid #463
schema/json-ld-valid reports Article.image must be a string or array of strings when image is a nested ImageObject. schema.org defines the range of Article.image as ImageObject or URL, and Google's Article structured-data docs show ImageObject as an accepted form. @unhead/schema-org (Nuxt) emits exactly this shape, so every Nuxt site using it is flagged.
Repro page
<!doctype html><htmllang="en"><head><metacharset="utf-8"><title>json-ld ImageObject repro page</title><metaname="description" content="Minimal repro: Article with a nested ImageObject image."><scripttype="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Repro","image":{"@type":"ImageObject","url":"https://example.com/a.png","width":1200,"height":630},"datePublished":"2026-01-01","author":{"@type":"Person","name":"A"},"publisher":{"@type":"Organization","name":"P"}}</script></head><body><main><h1>Repro</h1></main></body></html>
schema/json-ld-valid, item meta: "Validation: Article.image must be a string or array of strings" (severity "invalid", path ["image"]). The other items in the same output (publisher.logo) are unrelated to this report.
Expected
No image finding. image should accept a string, an ImageObject (or array of either).
Activity
fix(rules): json-ld-valid accepts an ImageObject for image and logo #463