summaryrefslogtreecommitdiffstats
path: root/src/lib/config/tests/testdata/spec22.spec
blob: 687db08bee716667d363d70d066bf4c12dccfba1 (plain)
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
{
  "module_spec": {
    "module_name": "Spec22",
    "config_data": [
      { "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": { "v91": "def", "v92": {} },
        "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": 56176
              }
            ]
          }
        ]
      }
    ]
  }
}