[AAI-2404]add aai-schema-abstraction library
[aai/aai-common.git] / aai-schema-abstraction / src / test / resources / json / schemaServiceResponse.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         "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     "common_node_properties": [
101       {
102         "name": "aai-uuid",
103         "required": true,
104         "unique": true,
105         "type": "string",
106         "description": "",
107         "default": "",
108         "annotations": {
109           "indexed": true,
110           "searchable": false,
111           "source_of_truth_type": "AAI",
112           "constraint": ""
113         }
114       },
115       {
116         "name": "source-of-truth",
117         "required": false,
118         "unique": false,
119         "type": "string",
120         "description": "",
121         "default": "",
122         "annotations": {
123           "indexed": false,
124           "searchable": false,
125           "source_of_truth_type": "AAI",
126           "constraint": ""
127         }
128       }
129     ]
130   }
131 }