{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "InventoryResult",
  "description": "Inventory availability result for a product across stores.",
  "type": "object",
  "properties": {
    "productId": {
      "type": "string",
      "description": "Product SKU.",
      "example": "SKU-123456"
    },
    "stores": {
      "type": "array",
      "description": "Store inventory records.",
      "items": {
        "$ref": "#/$defs/StoreInventory"
      }
    }
  }
}