blob: a7a2e6c969c7cd739653cfbf5819f792eb291e6c [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product set",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "number"
},
"name": {
"type": "string"
},
"price": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"dimensions": {
"type": "object",
"properties": {
"length": {"type": "number"},
"width": {"type": "number"},
"height": {"type": "number"}
},
"required": ["length", "width", "height"]
},
"warehouseLocation": {
"description": "Coordinates of the warehouse with the product",
"$ref": "http://json-schema.org/geo"
},
"dateOfManufacture": {
"description": "manufacturing date",
"type": "string"
},
"dateOfExpiry": {
"description": "expiry date",
"type": "string"
}
},
"required": ["id", "name", "price"]
}