@gradientedge/commercetools-utils
    Preparing search index...

    Interface AttributeDefinition

    interface AttributeDefinition {
        attributeConstraint: AttributeConstraintEnum;
        inputHint: TextInputHint;
        inputTip?: LocalizedString;
        isRequired: boolean;
        isSearchable: boolean;
        label: LocalizedString;
        level: AttributeLevelEnum;
        name: string;
        type: AttributeType;
    }
    Index
    attributeConstraint: AttributeConstraintEnum

    Specifies how Attributes are validated across all variants of a Product.

    inputHint: TextInputHint

    Provides a visual representation directive for values of this Attribute (only relevant for AttributeTextType and AttributeLocalizableTextType).

    inputTip?: LocalizedString

    Provides additional Attribute information to aid content managers configure Product details.

    isRequired: boolean

    Whether the Attribute must have a value on a ProductVariant.

    isSearchable: boolean

    Whether the Attribute's values are available in the Product Search or the Product Projection Search API for use in full-text search queries, filters, and facets. However, if an Attribute's level is set as Product, then Product Projection Search does not support the Attribute. To use the Attribute in search, filters, or facets, set isSearchable to true for all AttributeDefinitions with the same name across different ProductTypes. If the isSearchable values are different, the Attribute isn't available for search, filters, or facets.

    The exact features that are available with this flag depend on the specific [AttributeType](ctp:api:type:AttributeType).
    The maximum size of a searchable field is **restricted** by the [Field content size limit](/api/limits#field-content-size).
    This constraint is enforced at both [Product creation](ctp:api:endpoint:/{projectKey}/products:POST) and [Product update](/api/projects/products#update-product).
    If the length of the input exceeds the maximum size, an [InvalidField](ctp:api:type:InvalidFieldError) error is returned.
    

    Human-readable label for the Attribute.

    Specifies whether the Attribute is defined at the Product or Variant level.

    name: string

    User-defined name of the Attribute that is unique within the Project.

    Describes the Type of the Attribute.