summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/additional_properties.json
blob: 03bbef8ea5fc84a6dffbcf7c2ed3c59cb7d491bd (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
[
  {
    "namespace": "additionalProperties",
    "types": [
      {
        "id": "AdditionalPropertiesType",
        "type": "object",
        "properties": {
          "string": {
            "type": "string",
            "description": "Some string."
          }
        },
        "additionalProperties": { "type": "any" }
      }
    ],
    "functions": [
      {
        "name": "additionalProperties",
        "type": "function",
        "description": "Takes an object with additionalProperties",
        "parameters": [
          {
            "name": "paramObject",
            "type": "object",
            "properties": {},
            "additionalProperties": {"type": "any"}
          }
        ]
      },
      {
        "name": "returnAdditionalProperties",
        "type": "function",
        "description": "Returns an object with additionalProperties.",
        "nodoc": "true",
        "parameters": [
          {
            "type": "function",
            "name": "callback",
            "parameters": [
              {
                "name": "resultObject",
                "type": "object",
                "properties": {
                  "integer": {"type": "integer"}
                },
                "additionalProperties": {"type": "any"}
              }
            ]
          }
        ]
      }
    ]
  }
]