NumberAttribute
Type: schema
Description
Attribute for numeric values
TypeScript Definition
typescript
NumberAttribute: {{
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: "number";
/** @description For numeric attributes */
value: number;
};
/** Order */
}OpenAPI Schema
json
{
"title": "NumberAttribute",
"description": "Attribute for numeric values",
"type": "object",
"readOnly": true,
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/NumberAttribute",
"description": "API reference for the NumberAttribute 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": "number"
},
"value": {
"description": "For numeric attributes",
"type": "number"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions