1 # -*- coding: utf-8 -*-
4 # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
5 # This file is part of openmano
8 # Licensed under the Apache License, Version 2.0 (the "License"); you may
9 # not use this file except in compliance with the License. You may obtain
10 # a copy of the License at
12 # http://www.apache.org/licenses/LICENSE-2.0
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 # License for the specific language governing permissions and limitations
20 # For those usages not covered by the Apache License, Version 2.0 please
21 # contact with: nfvlabs@tid.es
25 JSON schemas used by openmano httpserver.py module to parse the different files and messages sent through the API
27 __author__
="Alfonso Tierno, Gerardo Garcia"
28 __date__
="$09-oct-2014 09:09:48$"
31 patern_name
="^[ -~]+$"
32 passwd_schema
={"type" : "string", "minLength":1, "maxLength":60}
33 nameshort_schema
={"type" : "string", "minLength":1, "maxLength":60, "pattern" : "^[^,;()'\"]+$"}
34 name_schema
={"type" : "string", "minLength":1, "maxLength":255, "pattern" : "^[^,;()'\"]+$"}
35 xml_text_schema
={"type" : "string", "minLength":1, "maxLength":1000, "pattern" : "^[^']+$"}
36 description_schema
={"type" : ["string","null"], "maxLength":255, "pattern" : "^[^'\"]+$"}
37 id_schema_fake
= {"type" : "string", "minLength":2, "maxLength":36 } #"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
38 id_schema
= {"type" : "string", "pattern": "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$"}
39 pci_schema
={"type":"string", "pattern":"^[0-9a-fA-F]{4}(:[0-9a-fA-F]{2}){2}\.[0-9a-fA-F]$"}
40 http_schema
={"type":"string", "pattern":"^https?://[^'\"=]+$"}
41 bandwidth_schema
={"type":"string", "pattern" : "^[0-9]+ *([MG]bps)?$"}
42 memory_schema
={"type":"string", "pattern" : "^[0-9]+ *([MG]i?[Bb])?$"}
43 integer0_schema
={"type":"integer","minimum":0}
44 integer1_schema
={"type":"integer","minimum":1}
45 path_schema
={"type":"string", "pattern":"^(\.){0,2}(/[^/\"':{}\(\)]+)+$"}
46 vlan_schema
={"type":"integer","minimum":1,"maximum":4095}
47 vlan1000_schema
={"type":"integer","minimum":1000,"maximum":4095}
48 mac_schema
={"type":"string", "pattern":"^[0-9a-fA-F][02468aceACE](:[0-9a-fA-F]{2}){5}$"} #must be unicast LSB bit of MSB byte ==0
49 #mac_schema={"type":"string", "pattern":"^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$"}
50 ip_schema
={"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"}
51 ip_prefix_schema
={"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(30|[12]?[0-9])$"}
52 port_schema
={"type":"integer","minimum":1,"maximum":65534}
53 object_schema
={"type":"object"}
54 schema_version_2
={"type":"integer","minimum":2,"maximum":2}
55 #schema_version_string={"type":"string","enum": ["0.1", "2", "0.2", "3", "0.3"]}
56 log_level_schema
={"type":"string", "enum":["DEBUG", "INFO", "WARNING","ERROR","CRITICAL"]}
61 "architecture": {"type":"string"},
62 "use_incremental": {"type":"string","enum":["yes","no"]},
64 "os_distro": {"type":"string"},
65 "os_type": {"type":"string"},
66 "os_version": {"type":"string"},
67 "bus": {"type":"string"},
68 "topology": {"type":"string", "enum": ["oneSocket"]}
72 #Schema for the configuration file
74 "title":"configuration response information schema",
75 "$schema": "http://json-schema.org/draft-04/schema#",
78 "http_port": port_schema
,
79 "http_admin_port": port_schema
,
80 "http_host": nameshort_schema
,
81 "vnf_repository": path_schema
,
82 "db_host": nameshort_schema
,
83 "db_user": nameshort_schema
,
84 "db_passwd": {"type":"string"},
85 "db_name": nameshort_schema
,
86 # Next fields will disappear once the MANO API includes appropriate primitives
87 "vim_url": http_schema
,
88 "vim_url_admin": http_schema
,
89 "vim_name": nameshort_schema
,
90 "vim_tenant_name": nameshort_schema
,
91 "mano_tenant_name": nameshort_schema
,
92 "mano_tenant_id": id_schema
,
93 "http_console_proxy": {"type":"boolean"},
94 "http_console_host": nameshort_schema
,
95 "http_console_ports": {
99 {"type":"object", "properties":{"from": port_schema
, "to": port_schema
}, "required": ["from","to"]}
102 "log_level": log_level_schema
,
103 "log_socket_level": log_level_schema
,
104 "log_level_db": log_level_schema
,
105 "log_level_vim": log_level_schema
,
106 "log_level_nfvo": log_level_schema
,
107 "log_level_http": log_level_schema
,
108 "log_file_db": path_schema
,
109 "log_file_vim": path_schema
,
110 "log_file_nfvo": path_schema
,
111 "log_file_http": path_schema
,
112 "log_socket_host": nameshort_schema
,
113 "log_socket_port": port_schema
,
114 "log_file": path_schema
,
116 "required": ['db_host', 'db_user', 'db_passwd', 'db_name'],
117 "additionalProperties": False
121 "title":"tenant information schema",
122 "$schema": "http://json-schema.org/draft-04/schema#",
128 "name": nameshort_schema
,
129 "description": description_schema
,
131 "required": ["name"],
132 "additionalProperties": True
135 "required": ["tenant"],
136 "additionalProperties": False
139 tenant_edit_schema
= {
140 "title":"tenant edit information schema",
141 "$schema": "http://json-schema.org/draft-04/schema#",
148 "description": description_schema
,
150 "additionalProperties": False
153 "required": ["tenant"],
154 "additionalProperties": False
157 datacenter_schema_properties
={
159 "description": description_schema
,
160 "type": nameshort_schema
, #currently "openvim" or "openstack", can be enlarged with plugins
161 "vim_url": description_schema
,
162 "vim_url_admin": description_schema
,
163 "config": { "type":"object" }
166 datacenter_schema
= {
167 "title":"datacenter information schema",
168 "$schema": "http://json-schema.org/draft-04/schema#",
173 "properties":datacenter_schema_properties
,
174 "required": ["name", "vim_url"],
175 "additionalProperties": True
178 "required": ["datacenter"],
179 "additionalProperties": False
183 datacenter_edit_schema
= {
184 "title":"datacenter edit nformation schema",
185 "$schema": "http://json-schema.org/draft-04/schema#",
190 "properties":datacenter_schema_properties
,
191 "additionalProperties": False
194 "required": ["datacenter"],
195 "additionalProperties": False
199 netmap_new_schema
= {
200 "title":"netmap new information schema",
201 "$schema": "http://json-schema.org/draft-04/schema#",
204 "netmap":{ #delete from datacenter
207 "name": name_schema
, #name or uuid of net to change
209 "vim_name": name_schema
212 "additionalProperties": False
215 "required": ["netmap"],
216 "additionalProperties": False
219 netmap_edit_schema
= {
220 "title":"netmap edit information schema",
221 "$schema": "http://json-schema.org/draft-04/schema#",
224 "netmap":{ #delete from datacenter
227 "name": name_schema
, #name or uuid of net to change
230 "additionalProperties": False
233 "required": ["netmap"],
234 "additionalProperties": False
237 datacenter_action_schema
= {
238 "title":"datacenter action information schema",
239 "$schema": "http://json-schema.org/draft-04/schema#",
242 "net-update":{"type":"null",},
246 "net": name_schema
, #name or uuid of net to change
248 "description": description_schema
,
249 "shared": {"type": "boolean"}
252 "additionalProperties": False
257 "net": name_schema
, #name or uuid of net to change
260 "additionalProperties": False
265 "additionalProperties": False
269 datacenter_associate_schema
={
270 "title":"datacenter associate information schema",
271 "$schema": "http://json-schema.org/draft-04/schema#",
277 "vim_tenant": id_schema
,
278 "vim_tenant_name": nameshort_schema
,
279 "vim_username": nameshort_schema
,
280 "vim_password": nameshort_schema
,
282 # "required": ["vim_tenant"],
283 "additionalProperties": True
286 "required": ["datacenter"],
287 "additionalProperties": False
291 "title":"DHCP schema",
292 "$schema": "http://json-schema.org/draft-04/schema#",
295 "enabled": {"type": "boolean"},
296 "start-address": ip_schema
,
297 "count": integer1_schema
299 "required": ["enabled", "start-address", "count"],
302 ip_profile_schema
= {
303 "title":"IP profile schema",
304 "$schema": "http://json-schema.org/draft-04/schema#",
307 "ip-version": {"type":"string", "enum":["IPv4","IPv6"]},
308 "subnet-address": ip_prefix_schema
,
309 "gateway-address": ip_schema
,
310 "dns-address": ip_schema
,
316 "title": "Key-pair schema for cloud-init configuration schema",
317 "$schema": "http://json-schema.org/draft-04/schema#",
321 "key": {"type":"string"}
324 "additionalProperties": False
327 cloud_config_user_schema
= {
328 "title": "User schema for cloud-init configuration schema",
329 "$schema": "http://json-schema.org/draft-04/schema#",
332 "name": nameshort_schema
,
333 "user-info": {"type":"string"},
334 #"key-pairs": {"type" : "array", "items": key_pair_schema}
335 "key-pairs": {"type" : "array", "items": {"type":"string"}}
337 "required": ["name"],
338 "additionalProperties": False
341 cloud_config_schema
= {
342 "title": "Cloud-init configuration schema",
343 "$schema": "http://json-schema.org/draft-04/schema#",
346 #"key-pairs": {"type" : "array", "items": key_pair_schema},
347 "key-pairs": {"type" : "array", "items": {"type":"string"}},
348 "users": {"type" : "array", "items": cloud_config_user_schema
}
350 "additionalProperties": False
353 internal_connection_element_schema
= {
357 "local_iface_name": name_schema
361 internal_connection_element_schema_v02
= {
365 "local_iface_name": name_schema
,
366 "ip_address": ip_schema
370 internal_connection_schema
= {
374 "description":description_schema
,
375 "type":{"type":"string", "enum":["bridge","data","ptp"]},
376 "elements": {"type" : "array", "items": internal_connection_element_schema
, "minItems":2}
378 "required": ["name", "type", "elements"],
379 "additionalProperties": False
382 internal_connection_schema_v02
= {
386 "description":description_schema
,
387 "type": {"type": "string", "enum":["e-line", "e-lan"]},
388 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
389 "ip-profile": ip_profile_schema
,
390 "elements": {"type" : "array", "items": internal_connection_element_schema_v02
, "minItems":2}
392 "required": ["name", "type", "implementation", "elements"],
393 "additionalProperties": False
396 external_connection_schema
= {
400 "type":{"type":"string", "enum":["mgmt","bridge","data"]},
402 "local_iface_name": name_schema
,
403 "description":description_schema
405 "required": ["name", "type", "VNFC", "local_iface_name"],
406 "additionalProperties": False
410 external_connection_schema_v02
= {
414 "mgmt": {"type":"boolean"},
415 "type": {"type": "string", "enum":["e-line", "e-lan"]},
416 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
418 "local_iface_name": name_schema
,
419 "description":description_schema
421 "required": ["name", "type", "VNFC", "local_iface_name"],
422 "additionalProperties": False
431 "dedicated":{"type":"string","enum":["yes","no","yes:sriov"]},
432 "bandwidth":bandwidth_schema
,
434 "mac_address": mac_schema
436 "additionalProperties": False,
437 "required": ["name","dedicated", "bandwidth"]
441 bridge_interfaces_schema
={
447 "bandwidth":bandwidth_schema
,
449 "mac_address": mac_schema
,
450 "model": {"type":"string", "enum":["virtio","e1000","ne2k_pci","pcnet","rtl8139"]}
452 "additionalProperties": False,
462 "type":{"type":"string", "enum":["disk","cdrom","xml"] },
463 "image": path_schema
,
464 "image metadata": metadata_schema
,
466 "xml":xml_text_schema
,
468 "additionalProperties": False,
477 "memory":integer1_schema
,
478 "cores":integer1_schema
,
479 "paired-threads":integer1_schema
,
480 "threads":integer1_schema
,
481 "cores-id":{"type":"array","items":integer0_schema
},
482 "paired-threads-id":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":integer0_schema
}},
483 "threads-id":{"type":"array","items":integer0_schema
},
484 "interfaces":interfaces_schema
486 "additionalProperties": False,
487 #"required": ["memory"]
494 "description": description_schema
,
495 "VNFC image": {"oneOf": [path_schema
, http_schema
]},
496 "image metadata": metadata_schema
,
497 #"cloud-config": cloud_config_schema, #common for all vnfs in the scenario
501 "model":description_schema
,
502 "features":{"type":"array","items":nameshort_schema
}
504 "required": ["model"],
505 "additionalProperties": False
510 "type":nameshort_schema
,
511 "version":description_schema
514 "ram":integer0_schema
,
515 "vcpus":integer0_schema
,
516 "disk": integer1_schema
,
521 "bridge-ifaces": bridge_interfaces_schema
,
522 "devices": devices_schema
525 "required": ["name", "VNFC image"],
526 "additionalProperties": False
530 "title":"vnfd information schema v0.1",
531 "$schema": "http://json-schema.org/draft-04/schema#",
538 "description": description_schema
,
539 "class": nameshort_schema
,
540 "public": {"type" : "boolean"},
541 "physical": {"type" : "boolean"},
542 "tenant_id": id_schema
, #only valid for admin
543 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
544 "internal-connections": {"type" : "array", "items": internal_connection_schema
, "minItems":1},
545 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
547 "required": ["name","external-connections"],
548 "additionalProperties": True
552 "additionalProperties": False
555 #VNFD schema for OSM R1
557 "title":"vnfd information schema v0.2",
558 "$schema": "http://json-schema.org/draft-04/schema#",
561 "schema_version": {"type": "string", "enum": ["0.2"]},
566 "description": description_schema
,
567 "class": nameshort_schema
,
568 "public": {"type" : "boolean"},
569 "physical": {"type" : "boolean"},
570 "tenant_id": id_schema
, #only valid for admin
571 "external-connections": {"type" : "array", "items": external_connection_schema
, "minItems":1},
572 "internal-connections": {"type" : "array", "items": internal_connection_schema_v02
, "minItems":1},
573 # "cloud-config": cloud_config_schema, #common for all vnfcs
574 "VNFC":{"type" : "array", "items": vnfc_schema
, "minItems":1}
576 "required": ["name"],
577 "additionalProperties": True
580 "required": ["vnf", "schema_version"],
581 "additionalProperties": False
584 #vnfd_schema = vnfd_schema_v01
586 # "title":"vnfd information schema v0.2",
587 # "$schema": "http://json-schema.org/draft-04/schema#",
588 # "oneOf": [vnfd_schema_v01, vnfd_schema_v02]
592 "title":"graphical scenario descriptor information schema",
593 "$schema": "http://json-schema.org/draft-04/schema#",
596 "x": integer0_schema
,
597 "y": integer0_schema
,
601 "left": {"type":"array"},
602 "right": {"type":"array"},
603 "bottom": {"type":"array"},
607 "required": ["x","y"]
611 "title":"network scenario descriptor information schema v0.1",
612 "$schema": "http://json-schema.org/draft-04/schema#",
616 "description": description_schema
,
617 "tenant_id": id_schema
, #only valid for admin
618 "public": {"type": "boolean"},
624 "patternProperties":{
628 "type":{"type":"string", "enum":["VNF", "other_network", "network", "external_network"]},
630 "graph": graph_schema
,
632 "patternProperties":{
633 "^(VNF )?model$": {"type": "string"}
641 "patternProperties":{
645 "nodes":{"oneOf":[{"type":"object", "minProperties":2}, {"type":"array", "minLength":1}]},
646 "type": {"type": "string", "enum":["link", "external_network", "dataplane_net", "bridge_net"]},
647 "graph": graph_schema
649 "required": ["nodes"]
654 "required": ["nodes"],
655 "additionalProperties": False
658 "required": ["name","topology"],
659 "additionalProperties": False
663 "title":"network scenario descriptor information schema v0.2",
664 "$schema": "http://json-schema.org/draft-04/schema#",
667 "schema_version": schema_version_2
,
672 "description": description_schema
,
673 "tenant_id": id_schema
, #only valid for admin
674 "public": {"type": "boolean"},
677 "patternProperties":{
682 "graph": graph_schema
,
683 "vnf_name": name_schema
,
691 "patternProperties":{
695 "interfaces":{"type":"array", "minLength":1},
696 "type": {"type": "string", "enum":["dataplane", "bridge"]},
697 "external" : {"type": "boolean"},
698 "graph": graph_schema
700 "required": ["interfaces"]
706 "required": ["vnfs", "name"],
707 "additionalProperties": False
710 "required": ["scenario","schema_version"],
711 "additionalProperties": False
714 #NSD schema for OSM R1
716 "title":"network scenario descriptor information schema v0.3",
717 "$schema": "http://json-schema.org/draft-04/schema#",
720 "schema_version": {"type": "string", "enum": ["0.3"]},
725 "description": description_schema
,
726 "tenant_id": id_schema
, #only valid for admin
727 "public": {"type": "boolean"},
728 "cloud-config": cloud_config_schema
, #common for all vnfs in the scenario
729 #"datacenter": name_schema,
732 "patternProperties":{
737 "graph": graph_schema
,
738 "vnf_name": name_schema
,
739 #"cloud-config": cloud_config_schema, #particular for a vnf
740 #"datacenter": name_schema,
741 "internal-connections": {
743 "patternProperties": {
747 "ip-profile": ip_profile_schema
,
754 "local_iface_name": name_schema
,
755 "ip_address": ip_schema
757 "required": ["VNFC", "local_iface_name"],
771 "patternProperties":{
782 "vnf_interface": name_schema
,
783 "ip_address": ip_schema
785 "required": ["vnf", "vnf_interface"],
788 "type": {"type": "string", "enum":["e-line", "e-lan"]},
789 "implementation": {"type": "string", "enum":["overlay", "underlay"]},
790 "external" : {"type": "boolean"},
791 "graph": graph_schema
,
792 "ip-profile": ip_profile_schema
794 "required": ["interfaces"]
800 "required": ["vnfs", "networks","name"],
801 "additionalProperties": False
804 "required": ["scenario","schema_version"],
805 "additionalProperties": False
808 #scenario_new_schema = {
809 # "title":"new scenario information schema",
810 # "$schema": "http://json-schema.org/draft-04/schema#",
811 # #"oneOf": [nsd_schema_v01, nsd_schema_v02]
812 # "oneOf": [nsd_schema_v01]
815 scenario_edit_schema
= {
816 "title":"edit scenario information schema",
817 "$schema": "http://json-schema.org/draft-04/schema#",
821 "description": description_schema
,
827 "patternProperties":{
828 "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$": {
834 "x": integer0_schema
,
835 "y": integer0_schema
,
836 "ifaces":{ "type": "object"}
839 "description": description_schema
,
846 "required": ["nodes"],
847 "additionalProperties": False
850 "additionalProperties": False
853 scenario_action_schema
= {
854 "title":"scenario action information schema",
855 "$schema": "http://json-schema.org/draft-04/schema#",
861 "instance_name":name_schema
,
862 "description":description_schema
,
863 "datacenter": {"type": "string"}
865 "required": ["instance_name"]
870 "instance_name":name_schema
,
871 "description":description_schema
,
872 "datacenter": {"type": "string"}
874 "required": ["instance_name"]
879 "instance_name":name_schema
,
880 "description":description_schema
,
881 "datacenter": {"type": "string"}
883 "required": ["instance_name"]
888 "instance_name":name_schema
,
889 "description":description_schema
,
890 "datacenter": {"type": "string"}
892 "required": ["instance_name"]
897 "additionalProperties": False
900 instance_scenario_create_schema_v01
= {
901 "title":"instance scenario create information schema v0.1",
902 "$schema": "http://json-schema.org/draft-04/schema#",
905 "schema_version": {"type": "string", "enum": ["0.1"]},
910 "description":description_schema
,
911 "datacenter": name_schema
,
912 "scenario" : name_schema
, #can be an UUID or name
913 "action":{"enum": ["deploy","reserve","verify" ]},
914 "connect_mgmt_interfaces": {"oneOf": [{"type":"boolean"}, {"type":"object"}]},# can be true or a dict with datacenter: net_name
915 "cloud-config": cloud_config_schema
, #common to all vnfs in the instance scenario
916 "vnfs":{ #mapping from scenario to datacenter
918 "patternProperties":{
922 "name": name_schema
, #override vnf name
923 "datacenter": name_schema
,
924 #"metadata": {"type": "object"},
925 #"user_data": {"type": "string"}
926 #"cloud-config": cloud_config_schema, #particular for a vnf
927 "external-connections": {
929 "patternProperties": {
933 "vim-network-name": name_schema
,
934 "ip_address": ip_schema
939 "internal-connections": {
941 "patternProperties": {
945 "ip-profile": ip_profile_schema
,
952 "local_iface_name": name_schema
,
953 "ip_address": ip_schema
955 "required": ["VNFC", "local_iface_name"],
966 "networks":{ #mapping from scenario to datacenter
968 "patternProperties":{
978 "ip_address": ip_schema
,
979 "datacenter": name_schema
,
980 "vim-network-name": name_schema
982 "patternProperties":{
983 ".": {"type": "string"}
987 "ip-profile": ip_profile_schema
,
988 #if the network connects VNFs deployed at different sites, you must specify one entry per site that this network connect to
995 # By default for an scenario 'external' network openmano looks for an existing VIM network to map this external scenario network,
996 # for other networks openamno creates at VIM
997 # Use netmap-create to force to create an external scenario network
998 "netmap-create": {"oneOf":[name_schema
,{"type": "null"}]}, #datacenter network to use. Null if must be created as an internal net
999 #netmap-use: Indicates an existing VIM network that must be used for this scenario network.
1000 #Can use both the VIM network name (if it is not ambiguous) or the VIM net UUID
1001 #If both 'netmap-create' and 'netmap-use'are supplied, netmap-use precedes, but if fails openmano follows the netmap-create
1002 #In oder words, it is the same as 'try to map to the VIM network (netmap-use) if exist, and if not create the network (netmap-create)
1003 "netmap-use": name_schema
, #
1004 "vim-network-name": name_schema
, #override network name
1005 #"ip-profile": ip_profile_schema,
1006 "datacenter": name_schema
,
1018 "additionalProperties": False,
1019 "required": ["name"]
1022 "required": ["instance"],
1023 "additionalProperties": False
1026 instance_scenario_action_schema
= {
1027 "title":"instance scenario action information schema",
1028 "$schema": "http://json-schema.org/draft-04/schema#",
1031 "start":{"type": "null"},
1032 "pause":{"type": "null"},
1033 "resume":{"type": "null"},
1034 "shutoff":{"type": "null"},
1035 "shutdown":{"type": "null"},
1036 "forceOff":{"type": "null"},
1037 "rebuild":{"type": "null"},
1039 "type": ["object","null"],
1041 "console": {"type": ["string", "null"], "enum": ["novnc", "xvpvnc", "rdp-html5", "spice-html5", None]},
1042 "vnfs":{"type": "array", "items":{"type":"string"}},
1043 "vms":{"type": "array", "items":{"type":"string"}}
1046 #"maxProperties": 1,
1047 "additionalProperties": False