[AAI-2404]add aai-schema-abstraction library
[aai/aai-common.git] / aai-schema-abstraction / src / test / resources / json / badEdgeSchema.json
1 {
2   "schema-version": "v1",
3   "schema-type": "json",
4   "schema-content": {
5     "relationship_types": [
6       {
7         "from": "tosca.nodes.SoftwareComponent",
8         "label": "tosca.relationships.HostedOn",
9         "annotations": {
10           "contains-other-v": "NONE",
11           "delete-other-v": "NONE",
12           "prevent-delete": "NONE"
13         }
14       }
15     ],
16     "data_types": [
17       {
18         "name": "org.onap.datatypes.network.MacAssignments",
19         "description": "",
20         "properties": [
21           {
22             "name": "mac_range_plan",
23             "required": false,
24             "type": "string",
25             "description": "",
26             "default": "",
27             "constraint": ""
28           },
29           {
30             "name": "mac_count",
31             "required": false,
32             "type": "integer",
33             "description": "",
34             "default": "",
35             "constraint": ""
36           },
37           {
38             "name": "supplemental_data",
39             "required": false,
40             "type": "string",
41             "description": "",
42             "default": "",
43             "constraint": ""
44           }
45         ]
46       }
47     ],
48     "node_types": [
49       {
50         "name": "tosca.nodes.ObjectStorage",
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 }