{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-component-schema.json",
  "title": "Component",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-experience-api-openapi.yml#/components/schemas/Component",
  "properties": {
    "id": {
      "maxLength": 256,
      "title": "ID",
      "description": "Component identifier.",
      "type": "string"
    },
    "typeId": {
      "maxLength": 256,
      "title": "Component Type ID",
      "description": "Component type identifier.",
      "type": "string"
    },
    "name": {
      "maxLength": 256,
      "title": "Component Name",
      "description": "Display name of the component.",
      "type": "string"
    },
    "fragment": {
      "title": "Fragment",
      "description": "Indicates whether the component is a fragment. True if the component is a fragment, otherwise false.",
      "type": "boolean"
    },
    "embedded": {
      "title": "Embedded",
      "description": "Indicates whether the component is embedded in another component. True if the component is embedded, otherwise false.",
      "type": "boolean"
    },
    "contentLinkUuid": {
      "maxLength": 256,
      "title": "Content Link UUID",
      "description": "Represents a globally unique identifier for every instance of a content component (or fragment) rendered on a page.",
      "type": "string"
    },
    "data": {
      "title": "Component Data",
      "description": "The configuration data assigned to the component.",
      "type": "object",
      "additionalProperties": false
    },
    "localized": {
      "title": "Localized",
      "description": "Whether the component has been localized with content in the current locale. If false, the components content will fallback to the default locale.",
      "type": "boolean"
    },
    "visible": {
      "title": "Visibility",
      "description": "Whether the component is visible based on the current visiblity rules and context.",
      "type": "boolean"
    },
    "custom": {
      "title": "Custom Component Data",
      "description": "Any custom data added by the custom code for this component.",
      "type": "object",
      "additionalProperties": false
    },
    "designMetadata": {
      "title": "Design Metadata",
      "description": "Design metadata of the component. This includes information about the component type definition needed by the page designer for design-time functionality.",
      "type": "object",
      "additionalProperties": false
    },
    "regions": {
      "title": "Regions",
      "description": "The regions (and their assigned components) for the component.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Region"
      }
    }
  },
  "required": [
    "id",
    "typeId"
  ],
  "type": "object",
  "$defs": {
    "Component": {
      "properties": {
        "id": {
          "maxLength": 256,
          "title": "ID",
          "description": "Component identifier.",
          "type": "string"
        },
        "typeId": {
          "maxLength": 256,
          "title": "Component Type ID",
          "description": "Component type identifier.",
          "type": "string"
        },
        "name": {
          "maxLength": 256,
          "title": "Component Name",
          "description": "Display name of the component.",
          "type": "string"
        },
        "fragment": {
          "title": "Fragment",
          "description": "Indicates whether the component is a fragment. True if the component is a fragment, otherwise false.",
          "type": "boolean"
        },
        "embedded": {
          "title": "Embedded",
          "description": "Indicates whether the component is embedded in another component. True if the component is embedded, otherwise false.",
          "type": "boolean"
        },
        "contentLinkUuid": {
          "maxLength": 256,
          "title": "Content Link UUID",
          "description": "Represents a globally unique identifier for every instance of a content component (or fragment) rendered on a page.",
          "type": "string"
        },
        "data": {
          "title": "Component Data",
          "description": "The configuration data assigned to the component.",
          "type": "object",
          "additionalProperties": false
        },
        "localized": {
          "title": "Localized",
          "description": "Whether the component has been localized with content in the current locale. If false, the components content will fallback to the default locale.",
          "type": "boolean"
        },
        "visible": {
          "title": "Visibility",
          "description": "Whether the component is visible based on the current visiblity rules and context.",
          "type": "boolean"
        },
        "custom": {
          "title": "Custom Component Data",
          "description": "Any custom data added by the custom code for this component.",
          "type": "object",
          "additionalProperties": false
        },
        "designMetadata": {
          "title": "Design Metadata",
          "description": "Design metadata of the component. This includes information about the component type definition needed by the page designer for design-time functionality.",
          "type": "object",
          "additionalProperties": false
        },
        "regions": {
          "title": "Regions",
          "description": "The regions (and their assigned components) for the component.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Region"
          }
        }
      },
      "required": [
        "id",
        "typeId"
      ],
      "type": "object"
    },
    "Region": {
      "properties": {
        "id": {
          "maxLength": 256,
          "title": "ID",
          "description": "Region identifier.",
          "type": "string"
        },
        "components": {
          "title": "Components",
          "description": "The components in the region.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Component"
          }
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    }
  }
}