DateAttribute
Type: schema
Description
Attribute for date values
TypeScript Definition
typescript
DateAttribute: {{
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: "date";
/** @description `YYYY-MM-DD`, optionally followed by ` HH:MM`, ` HH:MM:SS`, or ` HH:MM:SS.ffffff`. */
value: string;
};
/** DateTimeAttribute */
}OpenAPI Schema
json
{
"description": "Attribute for date values",
"type": "object",
"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": "date",
"const": "date"
},
"value": {
"description": "`YYYY-MM-DD`, optionally followed by ` HH:MM`, ` HH:MM:SS`, or ` HH:MM:SS.ffffff`.",
"type": "string"
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/DateAttribute"
},
"readOnly": true,
"required": [
"id",
"name",
"key",
"type",
"value"
],
"title": "DateAttribute"
}Auto-generated from OpenAPI spec and TypeScript definitions