summaryrefslogtreecommitdiffstats
path: root/src/test/resources/tosca/policy-yaml-to-json-with-constraints.json
blob: fe9b84d13e668af9462270bd00e33a5cd3c38f49 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
    "schema": {
        "uniqueItems": "true",
        "format": "tabs",
        "type": "array",
        "title": "Properties with constraints",
        "items": {
            "type": "object",
            "title": "Properties with constraints",
            "required": [
                "cpus",
                "memSize"
            ],
            "properties": {
                "appPassword": {
                    "propertyOrder": 1004,
                    "minLength": 6,
                    "title": "application password",
                    "type": "string",
                    "maxLength": 10
                },
                "cost": {
                    "exclusiveMaximum": 100.5,
                    "propertyOrder": 1005,
                    "type": "integer",
                    "exclusiveMinimum": 50.5
                },
                "keylength": {
                    "propertyOrder": 1007,
                    "type": "integer",
                    "enum": [
                        128,
                        256
                    ]
                },
                "cpus": {
                    "propertyOrder": 1001,
                    "default": 1,
                    "minLength": 1,
                    "type": "string",
                    "maxLength": 4
                },
                "ports": {
                    "propertyOrder": 1002,
                    "maximum": 9010,
                    "type": "integer",
                    "minimum": 9000
                },
                "memSize": {
                    "propertyOrder": 1003,
                    "maximum": 10,
                    "title": "memory size",
                    "type": "integer",
                    "minimum": 2
                },
                "algorithm": {
                    "propertyOrder": 1006,
                    "type": "string"
                }
            }
        }
    }
}