aboutsummaryrefslogtreecommitdiff
path: root/schemas_json/params.yaml
blob: 24d687f618d9a078c0d3870b9b79ae5b6f070149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
...