structured-data-sniffer
structured-data-sniffer copied to clipboard
Cannot Parse Genre that's not a URL
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: https://github.com/schemaorg/schemaorg/issues/51
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?