{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.peri.com/schemas/rich-results/product.schema.json",
  "title": "Product rich-results contract",
  "description": "Structure guaranteed for the schema.org Product node. Note: @type must be 'Product', not the generic 'Thing'.",
  "type": "object",
  "properties": {
    "@type": { "const": "Product" },
    "@id": { "type": "string", "minLength": 1, "pattern": "#product$" },
    "name": { "type": "string", "minLength": 1 },
    "mainEntityOfPage": {
      "type": "object",
      "properties": { "@id": { "type": "string", "minLength": 1 } },
      "required": ["@id"],
      "additionalProperties": false
    },
    "description": { "type": "string" },
    "additionalProperty": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "@type": { "const": "PropertyValue" },
          "name": { "type": "string", "minLength": 1 },
          "value": { "type": "string", "minLength": 1 }
        },
        "required": ["@type", "name", "value"],
        "additionalProperties": false
      }
    }
  },
  "required": ["@type", "@id", "name", "mainEntityOfPage", "description"],
  "additionalProperties": false
}
