{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immortals/json-schema/immortals-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immortals-openapi.yml#/components/schemas/CatalogResponse",
  "type": "object",
  "properties": {
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogProduct"
      }
    }
  },
  "additionalProperties": true,
  "required": [
    "products"
  ],
  "$defs": {
    "CatalogImage": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "src": {
          "type": "string"
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        }
      },
      "additionalProperties": true,
      "required": [
        "id",
        "src"
      ]
    },
    "CatalogProduct": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "vendor": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "body_html": {
          "type": [
            "string",
            "null"
          ],
          "description": "Merchant-authored HTML; treat as untrusted display content."
        },
        "product_type": {
          "type": "string"
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogVariant"
          }
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogImage"
          }
        }
      },
      "additionalProperties": true,
      "required": [
        "id",
        "title",
        "handle",
        "variants"
      ]
    },
    "CatalogVariant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "title": {
          "type": "string"
        },
        "price": {
          "type": "string",
          "description": "Decimal price string as returned by the public catalog. Currency is not included; do not assume USD or infer a billing interval."
        },
        "compare_at_price": {
          "type": [
            "string",
            "null"
          ],
          "description": "Decimal price string as returned by the public catalog. Currency is not included; do not assume USD or infer a billing interval."
        },
        "available": {
          "type": "boolean"
        },
        "sku": {
          "type": [
            "string",
            "null"
          ]
        },
        "option1": {
          "type": [
            "string",
            "null"
          ]
        },
        "option2": {
          "type": [
            "string",
            "null"
          ]
        },
        "option3": {
          "type": [
            "string",
            "null"
          ]
        },
        "featured_image": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "integer"
            },
            "src": {
              "type": "string"
            },
            "alt": {
              "type": [
                "string",
                "null"
              ]
            },
            "width": {
              "type": "integer"
            },
            "height": {
              "type": "integer"
            }
          },
          "additionalProperties": true,
          "required": [
            "id",
            "src"
          ]
        }
      },
      "additionalProperties": true,
      "required": [
        "id",
        "title",
        "price",
        "available"
      ]
    }
  }
}