[AAI-2404]add aai-schema-abstraction library
[aai/aai-common.git] / aai-schema-abstraction / src / test / resources / json / badVertexSchema.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": "org.onap.datatypes.network.MacAssignments",
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         "description": "",
52         "uriTemplate": "",
53         "properties": [
54           {
55             "name": "name",
56             "required": true,
57             "unique": false,
58             "type": "string",
59             "description": "",
60             "default": "",
61             "annotations": {
62               "indexed": true,
63               "searchable": true,
64               "source_of_truth_type": "AAI",
65               "constraint": ""
66             }
67           },
68           {
69             "name": "size",
70             "required": true,
71             "unique": false,
72             "type": "integer",
73             "description": "",
74             "default": "50",
75             "annotations": {
76               "indexed": false,
77               "searchable": true,
78               "source_of_truth_type": "AAI",
79               "constraint": "Greater_or_equal: 0 GB,"
80             }
81           },
82           {
83             "name": "maxsize",
84             "required": true,
85             "unique": false,
86             "type": "string",
87             "description": "",
88             "default": "",
89             "annotations": {
90               "indexed": false,
91               "searchable": false,
92               "source_of_truth_type": "AAI",
93               "constraint": "Greater_or_equal: 0 GB,"
94             }
95           }
96         ]
97       }
98     ]
99   }
100 }