aboutsummaryrefslogtreecommitdiff
path: root/schemas_json/params.yaml
diff options
context:
space:
mode:
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
+...