[AAI-2404]add aai-schema-abstraction library
[aai/aai-common.git] / aai-schema-abstraction / src / test / resources / json / badTypeSchema.json
1 {
2   "schema-version": "v1",
3   "schema-type": "json",
4   "schema-content": {
5     "relationship_types": [
6       {
7         "from": "tosca.nodes.SoftwareComponent",
8         "to": "tosca.nodes.Compute",
9         "label": "tosca.relationships.HostedOn",
10         "annotations": {
11           "contains-other-v": "NONE",
12           "delete-other-v": "NONE",
13           "prevent-delete": "NONE"
14         }
15       }
16     ],
17     "data_types": [
18       {
19         "name": "",
20         "description": "",
21         "properties": [
22           {
23             "name": "mac_range_plan",
24             "required": false,
25             "type": "string",
26             "description": "",
27             "default": "",
28             "constraint": ""
29           },
30           {
31             "name": "mac_count",
32             "required": false,
33             "type": "integer",
34             "description": "",
35             "default": "",
36             "constraint": ""
37           },
38           {
39             "name": "supplemental_data",
40             "required": false,
41             "type": "string",
42             "description": "",
43             "default": "",
44             "constraint": ""
45           }
46         ]
47       }
48     ],
49     "node_types": [
50       {
51         "name": "tosca.nodes.ObjectStorage",      
52         "description": "",
53         "uriTemplate": "",
54         "properties": [
55           {
56             "name": "name",
57             "required": true,
58             "unique": false,
59             "type": "string",
60             "description": "",
61             "default": "",
62             "annotations": {
63               "indexed": true,
64               "searchable": true,
65               "source_of_truth_type": "AAI",
66               "constraint": ""
67             }
68           },
69           {
70             "name": "size",
71             "required": true,
72             "unique": false,
73             "type": "integer",
74             "description": "",
75             "default": "50",
76             "annotations": {
77               "indexed": false,
78               "searchable": true,
79               "source_of_truth_type": "AAI",
80               "constraint": "Greater_or_equal: 0 GB,"
81             }
82           },
83           {
84             "name": "maxsize",
85             "required": true,
86             "unique": false,
87             "type": "string",
88             "description": "",
89             "default": "",
90             "annotations": {
91               "indexed": false,
92               "searchable": false,
93               "source_of_truth_type": "AAI",
94               "constraint": "Greater_or_equal: 0 GB,"
95             }
96           }
97         ]
98       }
99     ]
100   }
101 }