Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Parse Genre that's not a URL #13

Open
mark-making opened this issue Nov 9, 2018 · 1 comment
Open

Cannot Parse Genre that's not a URL #13

mark-making opened this issue Nov 9, 2018 · 1 comment

Comments

@mark-making
Copy link

mark-making commented Nov 9, 2018

This passes the SDTT, but not in the Chrome plugin.

{
  "@context": "http://schema.org",
  "@type": "CreativeWork",
  "isFamilyFriendly" : "true",
  "dateCreated" : "2017-10-12T16:46:27+00:00",
  "dateModified" : "2017-10-18T15:30:43+00:00",
  "headline": "Headline",
  "genre": "Technology and Innovation",
  "description": "Some description"                
}

Does not parse. It tries to put the site URL before it.

JSON-LD discovered, but fails syntax checking by parser:
Error: Syntax error: unexpected "<http://site.url/Technology%20and" on line 6.

Is this an error with the plugin or related to:
schemaorg/schemaorg#51

@TallTed
Copy link
Contributor

TallTed commented Nov 9, 2018

I'd say the issue here is not in OSDS, as the JSON-LD 1.0 Playground and 1.1 Dev Playground produce the same.

It does seem related to the schema.org context file, as discussed in their issue 51.

Note that as suggested there, you can address this in the JSON-LD (if that's under your control), by changing --

"genre": "Technology and Innovation",

-- to --

"genre": { "@value": "Technology and Innovation" },

Of course, as noted in schema.org issue 51, SDTT doesn't like that, which all appear to agree is a bug in SDTT.

@smalinin - Any other thoughts?

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

No branches or pull requests

2 participants