1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
"name": "{{ mapping.dictionary_name }}",
"tags": "{{ mapping.dictionary_name }}",
"data_type": "{{ mapping.mapping_type }}",
"description": "{{ mapping.dictionary_name }}",
"entry_schema": "{{ mapping.mapping_type }}",
"updatedBy": "Python ONAP SDK",
"definition": {
"tags": "{{ mapping.dictionary_name }}",
"name": "{{ mapping.dictionary_name }}",
"property": {
"description": "{{ mapping.dictionary_name }}",
"type": "{{ mapping.mapping_type }}"
},
"updated-by": "Python ONAP SDK",
"sources": {
{% for source in mapping.dictionary_sources %}
{% if source == "input" %}
"input": {
"type": "source-input"
},
{% elif source == "sdnc" %}
"sdnc": {% include "data_dictionary_source_rest.json.j2" %},
{% elif source == "processor-db" %}
"processor-db": {
"type": "source-db",
"properties": {
"type": "<< FILL >>",
"query": "<< FILL >>",
"input-key-mapping": {},
"output-key-mapping": {},
"key-dependencies": []
}
},
{% elif source == "aai-data" %}
"aai-data": {% include "data_dictionary_source_rest.json.j2" %},
{% elif source == "default" %}
{# Do not do anything, default will be always added #}
{% else %}
"{{ source }}": {
"type": "unknown",
"properties": {}
},
{% endif %}
{% endfor %}
"default": {
"type": "source-default",
"properties": {}
}
}
}
}
|