summaryrefslogtreecommitdiffstats
path: root/src/lib/config/tests/testdata/spec2.spec
blob: 43524224a25a14df2313a70fd6f19639d9c84d8a (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
{
  "module_spec": {
    "module_name": "Spec2",
    "config_data": [
      { "item_name": "item1",
        "item_type": "integer",
        "item_optional": false,
        "item_default": 1
      },
      { "item_name": "item2",
        "item_type": "real",
        "item_optional": false,
        "item_default": 1.1
      },
      { "item_name": "item3",
        "item_type": "boolean",
        "item_optional": false,
        "item_default": true
      },
      { "item_name": "item4",
        "item_type": "string",
        "item_optional": false,
        "item_default": "test"
      },
      { "item_name": "item5",
        "item_type": "list",
        "item_optional": false,
        "item_default": [ "a", "b" ],
        "list_item_spec": {
          "item_name": "list_element",
          "item_type": "string",
          "item_optional": false,
          "item_default": ""
        }
      },
      { "item_name": "item6",
        "item_type": "map",
        "item_optional": false,
        "item_default": {},
        "map_item_spec": [
          { "item_name": "value1",
            "item_type": "string",
            "item_optional": true,
            "item_default": "default"
          },
          { "item_name": "value2",
            "item_type": "integer",
            "item_optional": true
          }
        ]
      }
    ],
    "commands": [
      {
        "command_name": "print_message",
        "command_description": "Print the given message to stdout",
        "command_args": [ {
          "item_name": "message",
          "item_type": "string",
          "item_optional": false,
          "item_default": ""
        } ]
      },
      {
        "command_name": "shutdown",
        "command_description": "Shut down BIND 10",
        "command_args": []
      }
    ],
    "statistics": [
      {
        "item_name": "dummy_time",
        "item_type": "string",
        "item_optional": false,
        "item_default": "1970-01-01T00:00:00Z",
        "item_title": "Dummy Time",
        "item_description": "A dummy date time",
        "item_format": "date-time"
      }
    ]
  }
}