-
Notifications
You must be signed in to change notification settings - Fork 844
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
Markup errors in AggregateOffer examples #3298
Comments
Thanks @RichardWallis |
I just noticed the matter of double quote usage hasn't been fixed in this release @RichardWallis. Does this happen to do with how the json-ld examples are being generated or is this something I could fix myself if I modify the correct files? And if I can make such fixes myself, could you point out which files I need to edit? |
These examples are not 'generated' they just use the code suppled. So used to seeing double quotes around everything, I didn't spot the difference in your suggested change beyond priceCurrency. I will fix to the suggested ideal practice. However I note the term definition does also allow Text - reflecting common [poor] practice |
No worries, I don't want to put it all on your back. The reason I asked is because quite recently, yet again, I had a discussion with some folks about how they sometimes don't understand the often subtle differences between schema.org examples and those provided by Google, and that because of this markup examples copied from schema.org sometimes don't seem to satisfy the Rich Result Test even after folks have modified their templates. And so I'm contemplating helping out by by going through (all of?) schema.org examples to see what I can update and actualize to modern patterns. Now don't get me wrong, I don't intend on making sure everything complies with what Google wants (not that crazy), it's more about actualizing as many of the examples as I can, thus trying to prevent copy and paste errors for folks that aren't all that experienced in this stuff. |
…om datacommons and their partners. /cc schemaorg#3298 schemaorg#2291
The https://schema.org/AggregateOffer markup examples contain a couple of errors:
and
In both case there's a price currency symbol in the pricing values. Providing number values and adding a
priceCurrency
property instead would be better. Secondly in JSON-LDNumber
values should be without double quotes.And the second example only has a
lowPrice
. Since there's nohighPrice
it'd be better to useprice
instead.The text was updated successfully, but these errors were encountered: