====== Item variance ====== { "$id": "https://www.igarment.net/schema/json/v1-0/object-style.json", "title": "Style and style variances", "description": "Common used object which are product description related.", "$defs": { // Style description and common propertiest. "style": { "type": "object", "properties": { "style": { "type": "string" }, "garment_type": { "type": "string", "maxlength": 4 }, "description": { "type": "string" }, "userdefs": { "$ref": "object-document.json#/$defs/userdefs" } }, "required": [ "style" ] } // Attributes of product "variance": { "type": "object", "properties": { "color": { "type": "string" }, "size": { "type": "string" }, "dim3": { "type": "string" } } }, // Description of assortment "assortment": { "type": "array", "items": { "type": "object", "allOf": [ { "$ref": "#$defs/variance" } ], "properties": { "qty": { "type": "number" }, "price": { "type": "number" } } } }, // ??? "variance_match": { "type": "object", "properties": { "colors": { "type": "array", "items": { "type": "string" } }, "sizes": { "type": "array", "items": { "type": "string" } }, "dim3s": { "type": "array", "items": { "type": "string" } } } }, // Job allocation of qty or amout "distribution": { "type": "array", "items": { "type": "object", "oneOf": [ { "$ref": "#/$defs/variance" } ], "properties": { "style": { "type": "string" }, "job_order": { "type": "string" }, "qty": { "type": "number" }, "value": { "type": "number" } } } } } }