{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/savanto-ai/json-schema/savanto-ai-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/savanto-ai-api-openapi.json#/components/schemas/Product",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "excerpt": {
      "type": "string"
    },
    "searchableText": {
      "type": "string"
    },
    "price": {
      "type": [
        "number",
        "null"
      ]
    },
    "salePrice": {
      "type": [
        "number",
        "null"
      ]
    },
    "regularPrice": {
      "type": [
        "number",
        "null"
      ]
    },
    "onSale": {
      "type": "boolean"
    },
    "priceMin": {
      "type": [
        "number",
        "null"
      ]
    },
    "priceMax": {
      "type": [
        "number",
        "null"
      ]
    },
    "stockQuantity": {
      "type": [
        "number",
        "null"
      ]
    },
    "stockStatus": {
      "type": "string",
      "enum": [
        "instock",
        "outofstock",
        "onbackorder"
      ]
    },
    "sku": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "simple",
        "variable",
        "grouped",
        "external"
      ]
    },
    "weight": {
      "type": [
        "number",
        "null"
      ]
    },
    "dimensions": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "length": {
          "type": [
            "number",
            "null"
          ]
        },
        "width": {
          "type": [
            "number",
            "null"
          ]
        },
        "height": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "rating": {
      "type": [
        "number",
        "null"
      ]
    },
    "reviewCount": {
      "type": "number"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "brands": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "visibility": {
      "type": "string"
    },
    "featured": {
      "type": "boolean"
    },
    "virtual": {
      "type": "boolean"
    },
    "downloadable": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "attributes": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "source": {
      "type": "string"
    },
    "indexStatus": {
      "type": "string",
      "enum": [
        "active",
        "hidden",
        "disabled"
      ]
    },
    "score": {
      "type": "number"
    },
    "matchingChunks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chunkText": {
            "type": "string"
          },
          "order": {
            "type": "number"
          }
        },
        "required": [
          "chunkText",
          "order"
        ]
      }
    }
  },
  "required": [
    "id",
    "name"
  ]
}