aboutsummaryrefslogtreecommitdiff
path: root/schemas_json/params.yaml
diff options
context:
space:
mode:
authorbozokopic <bozo.kopic@gmail.com>2018-04-12 14:14:39 +0200
committerbozokopic <bozo.kopic@gmail.com>2018-04-12 14:14:39 +0200
commit2b6b2b429376d05931b67cd2009dd5aa93cc841f (patch)
tree119943b64bf1f7ad05ff7e8c960b68c79d4b649a /schemas_json/params.yaml
parente6974a745be9aef7982fb3788485550918ea2b75 (diff)
main.py
Diffstat (limited to 'schemas_json/params.yaml')
-rw-r--r--schemas_json/params.yaml46
1 files changed, 46 insertions, 0 deletions
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
+...