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

Rich Result Text shows "offer" error when using Motorcycle type #192

Open
DarthTicius opened this issue Apr 28, 2023 · 0 comments
Open

Rich Result Text shows "offer" error when using Motorcycle type #192

DarthTicius opened this issue Apr 28, 2023 · 0 comments

Comments

@DarthTicius
Copy link

When trying to use the Motorcycle as "@type" for 'itemOffer' the Rich Result test throw an error about offer for Product snippets.
If we change the @type to Car the error is gone.

The issue appears to be in the "itemOffered" part.
We get error when using Motorcycle as type:

"itemOffered": {
  "@type": "Motorcycle",
  "name": "Long name of product",
  "itemCondition": "UsedCondition",
},

Screen Shot 2023-04-28 at 5 42 43 PM

while using Car as type will pass:

"itemOffered": {
  "@type": "Car",
  "name": "Long name of product",
  "itemCondition": "UsedCondition",
},

Screen Shot 2023-04-28 at 6 05 07 PM

Is this intended behaviour?

(Schema also tested on the validator.schema.org)
Test code example used in Rich Result Text to reproduce:

 <html>
  <head>
    <title>Executive Anvil</title>
    <script type="application/ld+json">
      {
        "@context": "https://schema.org/",
        "@type": "Product",
        "name": "Long name of product",
        "brand": {
          "@type": "Brand",
          "name": "Brand Name"
        },
        "image": {
          "@type": "ImageObject",
          "url": "#"
        },
        "description": "<p>Test</p>\n",
        "offers": {
          "@type": "Offer",
          "url": "url of the product",
          "availability": "InStock",
          "name": "Long name of product",
          "image": {
            "@type": "ImageObject",
            "url": "#"
          },
          "offeredBy": {
            "@type": "Person",
            "name": "Name and Surname of the seller",
            "address": {
              "@type": "PostalAddress",
              "streetAddress": "My street address",
              "addressLocality": "The city",
              "postalCode": "Some postal code",
              "addressCountry": "UN"
            }
          },
          "itemOffered": {
            "@type": "Motorcycle",
            "name": "Long name of product",
            "itemCondition": "UsedCondition"
          },
          "priceSpecification": {
            "@type": "PriceSpecification",
            "price": "99.99",
            "priceCurrency": "EUR"
          }
        }
      }
    </script>
  </head>
  <body>
  </body>
</html>
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

1 participant