summaryrefslogtreecommitdiff
path: root/examples/validate_resource-1.schema
blob: c540db50906e5d1e8bb2c28f3f100c9038821b11 (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
type: map
mapping:
  "title":
    type: str
    required: yes
  "name":
    type: str
    required: yes
  "caller_module_name":
    type: str
    required: yes
  "module_name":
    type: str
    required: yes
  "color":
    type: str
    required: yes
  "type":
    type: str
    required: yes
  "somenumber":
    type: str
    required: yes
    pattern: /^\d+$/
  "map":
    type: map
    mapping:
      "a":
        type: str
        required: yes
        pattern: /^\d+$/
      "b":
        type: str
        required: yes
        pattern: /^\d+$/
      "c":
        type: str
        required: yes
        pattern: /^\d+$/