{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-commerce-cloud/json-schema/sap-commerce-cloud-catalog-list-schema.json",
  "title": "CatalogList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sap-commerce-cloud-catalogs-api-openapi.yml#/components/schemas/CatalogList",
  "type": "object",
  "properties": {
    "catalogs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Catalog"
      }
    }
  },
  "$defs": {
    "Catalog": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Catalog identifier"
        },
        "name": {
          "type": "string",
          "description": "Catalog name"
        },
        "catalogVersions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogVersion"
          }
        }
      }
    },
    "CatalogVersion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Catalog version identifier"
        },
        "url": {
          "type": "string",
          "description": "Catalog version URL"
        },
        "categories": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Category"
          }
        }
      }
    },
    "Category": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Category code"
        },
        "name": {
          "type": "string",
          "description": "Category name"
        },
        "url": {
          "type": "string",
          "description": "Category URL"
        },
        "image": {
          "$ref": "#/$defs/Image"
        },
        "subcategories": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Category"
          }
        }
      }
    },
    "Image": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Image URL"
        },
        "altText": {
          "type": "string",
          "description": "Alternative text"
        },
        "format": {
          "type": "string",
          "description": "Image format (e.g., thumbnail, product, zoom)"
        },
        "imageType": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "GALLERY"
          ],
          "description": "Image type"
        }
      }
    }
  }
}