cdb/schema/item.json

48 lines
1.5 KiB
JSON
Raw Normal View History

2024-08-27 21:33:09 +00:00
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Item",
"description": "Item Metadata",
"properties": {
"name": {
"type": "string",
"title": "Item Name",
"description": "The name of the Item"
},
2024-08-28 20:03:39 +00:00
"category": {
"title": "Category",
"description": "The category of the item",
"type": "string"
},
2024-08-27 21:33:09 +00:00
"variants": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"title": "Item Variant",
"description": "A Variant of an Item",
2024-08-28 07:14:33 +00:00
"properties": {
"name": {
"type": "string",
"title": "Variant Name",
"description": "The name of the Variant"
2024-08-30 12:13:56 +00:00
},
"min": {
"type": "number",
"title": "Minimum inventory",
"description": "The minimum amount of inventory for an Item. Thre actual inventory amount should always be higher than that."
},
"expiry": {
"type": "number",
"title": "Expiry days",
"description": "Number of days until this item variant is considered expired."
2024-08-28 07:14:33 +00:00
}
}
2024-08-27 21:33:09 +00:00
}
}
2024-08-28 07:14:33 +00:00
},
2024-08-28 20:03:39 +00:00
"required": [
"name",
"variants"
]
2024-08-27 21:33:09 +00:00
}