Improve unit test coverage of ToscaYamlToJsonConvertor
[clamp.git] / src / test / resources / tosca / policy-yaml-to-json-with-constraints.json
1 {
2     "schema": {
3         "uniqueItems": "true",
4         "format": "tabs-top",
5         "type": "array",
6         "title": "Properties with constraints",
7         "items": {
8             "type": "object",
9             "title": "Properties with constraints",
10             "required": [
11                 "cpus",
12                 "memSize"
13             ],
14             "properties": {
15                 "appPassword": {
16                     "propertyOrder": 1004,
17                     "minLength": 6,
18                     "title": "application password",
19                     "type": "string",
20                     "maxLength": 10
21                 },
22                 "cost": {
23                     "exclusiveMaximum": 100.5,
24                     "propertyOrder": 1005,
25                     "type": "integer",
26                     "exclusiveMinimum": 50.5
27                 },
28                 "keylength": {
29                     "propertyOrder": 1007,
30                     "type": "integer",
31                     "enum": [
32                         128,
33                         256
34                     ]
35                 },
36                 "cpus": {
37                     "propertyOrder": 1001,
38                     "default": 1,
39                     "minLength": 1,
40                     "type": "string",
41                     "maxLength": 4
42                 },
43                 "ports": {
44                     "propertyOrder": 1002,
45                     "maximum": 9010,
46                     "type": "integer",
47                     "minimum": 9000
48                 },
49                 "memSize": {
50                     "propertyOrder": 1003,
51                     "maximum": 10,
52                     "title": "memory size",
53                     "type": "integer",
54                     "minimum": 2
55                 },
56                 "algorithm": {
57                     "propertyOrder": 1006,
58                     "type": "string"
59                 }
60             }
61         }
62     }
63 }