summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/forbidden.json
blob: c7978aaa9b54423fbd4d0246f74450110e31ff80 (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
[
  {
    "namespace": "forbidden",
    "types": [],
    "functions": [
      {
        "name": "forbiddenParameters",
        "type": "function",
        "description": "Don't do this at home. Accepts multiple choices and values",
        "parameters": [
          {
            "name": "firstChoice",
            "description": "a choice between int and array",
            "choices": [
              {"type": "integer", "minimum": 0},
              {"type": "array", "items": {"type": "integer"}}
            ]
          },
          {
            "type": "string",
            "name": "firstString"
          },
          {
            "name": "secondChoice",
            "description": "a choice between int and array",
            "choices": [
              {"type": "integer", "minimum": 0},
              {"type": "array", "items": {"type": "integer"}}
            ]
          },
          {
            "type": "string",
            "name": "secondString"
          }
        ]
      }
    ]
  }
]