SingleSelectAttribute
Type: schema
Description
Attribute for single-select values
TypeScript Definition
typescript
SingleSelectAttribute: {{
id: string;
name: string;
/** @description A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type` */
key: string;
/**
* @description discriminator enum property added by openapi-typescript
* @enum {string}
*/
type: "single-select";
/** @description For single-select attributes */
value: string;
};
/** SingleSelectOption */
}OpenAPI Schema
json
{
"title": "SingleSelectAttribute",
"description": "Attribute for single-select values",
"type": "object",
"readOnly": true,
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/SingleSelectAttribute",
"description": "API reference for the SingleSelectAttribute schema"
},
"required": [
"id",
"name",
"key",
"type",
"value"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"key": {
"description": "A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`",
"type": "string"
},
"type": {
"type": "string",
"example": "single-select"
},
"value": {
"description": "For single-select attributes",
"type": "string"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions