summaryrefslogtreecommitdiffstats
path: root/src/lib/config/tests/testdata/spec32.spec
blob: 2baf1c1f6e37e9dfb6af91d0bdaad9cb0f40d80c (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
{
  "module_spec": {
    "module_name": "Spec32",
    "config_data": [
      { "item_name": "named_set_item",
        "item_type": "named_set",
        "item_optional": false,
        "item_default": { "a": 1, "b": 2 },
        "named_set_item_spec": {
          "item_name": "named_set_element",
          "item_type": "integer",
          "item_optional": false,
          "item_default": 3
        }
      },
      { "item_name": "named_set_item2",
        "item_type": "named_set",
        "item_optional": true,
        "item_default": { },
        "named_set_item_spec": {
          "item_name": "named_set_element",
          "item_type": "map",
          "item_optional": false,
          "item_default": {},
          "map_item_spec": [
          { "item_name": "first",
            "item_type": "integer",
            "item_optional": true
          },
          { "item_name": "second",
            "item_type": "string",
            "item_optional": true
          }
          ]
        }
      },
      { "item_name": "named_set_item3",
        "item_type": "named_set",
        "item_optional": true,
        "item_default": { "values": [ 1, 2, 3 ] },
        "named_set_item_spec": {
          "item_name": "named_set_element",
          "item_type": "list",
          "item_optional": false,
          "item_default": [],
          "list_item_spec":
          { "item_name": "list_value",
            "item_type": "integer",
            "item_optional": true
          }
        }
      },
      { "item_name": "named_set_item4",
        "item_type": "named_set",
        "item_optional": true,
        "item_default": {},
        "named_set_item_spec": {
          "item_name": "named_set_element",
          "item_type": "named_set",
          "item_optional": false,
          "item_default": { "a": 1, "b": 2 },
          "named_set_item_spec":
          { "item_name": "named_set_element",
            "item_type": "integer",
            "item_optional": true
          }
        }
      }
    ]
  }
}