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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
{
"module_spec": {
"module_name": "Spec27",
"commands": [
{
'command_name': 'cmd1',
"command_description": "command_for_unittest",
'command_args': [
{
"item_name": "value1",
"item_type": "integer",
"item_optional": False,
"item_default": 9
},
{ "item_name": "value2",
"item_type": "real",
"item_optional": False,
"item_default": 9.9
},
{ "item_name": "value3",
"item_type": "boolean",
"item_optional": False,
"item_default": False
},
{ "item_name": "value4",
"item_type": "string",
"item_optional": False,
"item_default": "default_string"
},
{ "item_name": "value5",
"item_type": "list",
"item_optional": False,
"item_default": [ "a", "b" ],
"list_item_spec": {
"item_name": "list_element",
"item_type": "integer",
"item_optional": False,
"item_default": 8
}
},
{ "item_name": "value6",
"item_type": "map",
"item_optional": False,
"item_default": {},
"map_item_spec": [
{ "item_name": "v61",
"item_type": "string",
"item_optional": False,
"item_default": "def"
},
{ "item_name": "v62",
"item_type": "boolean",
"item_optional": False,
"item_default": False
}
]
},
{ "item_name": "value7",
"item_type": "list",
"item_optional": True,
"item_default": [ ],
"list_item_spec": {
"item_name": "list_element",
"item_type": "any",
"item_optional": True
}
},
{ "item_name": "value8",
"item_type": "list",
"item_optional": True,
"item_default": [ ],
"list_item_spec": {
"item_name": "list_element",
"item_type": "map",
"item_optional": True,
"item_default": { "a": "b" },
"map_item_spec": [
{ "item_name": "a",
"item_type": "string",
"item_optional": True,
"item_default": "empty"
}
]
}
},
{ "item_name": "value9",
"item_type": "map",
"item_optional": False,
"item_default": {},
"map_item_spec": [
{ "item_name": "v91",
"item_type": "string",
"item_optional": False,
"item_default": "def"
},
{ "item_name": "v92",
"item_type": "map",
"item_optional": False,
"item_default": {},
"map_item_spec": [
{ "item_name": "v92a",
"item_type": "string",
"item_optional": False,
"item_default": "Hello"
} ,
{
"item_name": "v92b",
"item_type": "integer",
"item_optional": False,
"item_default": 47806
}
]
}
]
}
]
}
]
}
}
|