Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Schema Markup using URLs for article images fail validation. #73

Open
andreban opened this issue Sep 12, 2018 · 1 comment
Open

Schema Markup using URLs for article images fail validation. #73

andreban opened this issue Sep 12, 2018 · 1 comment
Assignees
Labels

Comments

@andreban
Copy link
Member

On the Article specification, the documentation says that the image field can be "Repeated field of ImageObject or URL".

AMPBench validation for the field currently fails if an URL is used, of if a sequence of objects is used. The validation seems to only accept ImageObjects (as per this code section).

The example below, extracted from the docs fails:

{
  "@context": "http://schema.org",
  "@type": "NewsArticle",
  "image": [
    "https://example.com/photos/1x1/photo.jpg",
    "https://example.com/photos/4x3/photo.jpg",
    "https://example.com/photos/16x9/photo.jpg"
  ]
}
@andreban andreban added the bug label Sep 12, 2018
@pietergreyling pietergreyling self-assigned this Sep 19, 2018
@ithinkihaveacat
Copy link
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants