From 2b6b2b429376d05931b67cd2009dd5aa93cc841f Mon Sep 17 00:00:00 2001 From: bozokopic Date: Thu, 12 Apr 2018 14:14:39 +0200 Subject: main.py --- schemas_json/params.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 schemas_json/params.yaml (limited to 'schemas_json/params.yaml') diff --git a/schemas_json/params.yaml b/schemas_json/params.yaml new file mode 100644 index 0000000..24d687f --- /dev/null +++ b/schemas_json/params.yaml @@ -0,0 +1,46 @@ +--- +"$schema": "http://json-schema.org/schema#" +id: "opcut://params.yaml#" +type: object +required: + - cut_width + - panels + - items +properties: + cut_width: + type: number + panels: + type: object + patternProperties: + "(.)+": + "$ref": "opcut://params.yaml#/definitions/panel" + items: + type: object + patternProperties: + "(.)+": + "$ref": "opcut://params.yaml#/definitions/item" +definitions: + panel: + type: object + required: + - width + - height + properties: + width: + type: number + height: + type: number + item: + type: object + required: + - width + - height + - can_rotate + properties: + width: + type: number + height: + type: number + can_rotate: + type: boolean +... -- cgit v1.2.3-70-g09d2