{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Product price-state teaching contract without cross-field rules",
  "type": "array",
  "minItems": 1,
  "maxItems": 1000,
  "items": {
    "type": "object",
    "properties": {
      "title": {
        "type": "string",
        "minLength": 1,
        "pattern": "\\S",
        "description": "Product title as displayed"
      },
      "priceText": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S",
        "description": "Displayed price including currency; null when unavailable, never infer zero"
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "description": "All tag labels belonging to this product; empty when none exist"
      },
      "priceState": {
        "type": "string",
        "enum": [
          "observed",
          "unavailable"
        ],
        "description": "Observed means nonblank displayed price captured; unavailable means capture lacks a displayed price, not stock status."
      }
    },
    "required": [
      "title",
      "priceText",
      "tags",
      "priceState"
    ],
    "additionalProperties": false
  }
}
