jkphl/micrometa

View on GitHub
src/Micrometa/Tests/Fixture/json-ld/jsonld-incorrect-empty-type-list.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <!-- Example from in-the-wild: https://cvp.com/product/sony_a7iii -->
    <script type="application/ld+json">
    {
      "@context": "http://schema.org/",
      "@type": "Product",
      "name": "Sony a7 III Camera Body Only",
      "image": "",
      "description": "Sony a7 Mark III 24.2 Megapixel Full Frame Digital Camera with 4K HDR Video Recording - Body Only (p/n ILCE7M3B.CEC)",
      "gtin": "4548736079656",
      "sku": "192499",
      "mpn": "ILCE7M3B.CEC",
      "brand": {
        "@type": "Thing",
        "name": "Sony"
      },
      "offers": {
        "@type": "Offer",
        "url" : "https://cvp.com/product/sony_a7iii",
        "priceCurrency": "GBP",
        "price": "0.00",
        "itemCondition": "http://schema.org/NewCondition",
        "availability": "http://schema.org/OutOfStock",
        "seller": {
          "@type": "Organization",
          "name": "CVP.com - Professional Video Cameras, Broadcast Camcorders"
        }
      }
    }
    </script>
  </head>
  <body></body>
</html>