summaryrefslogtreecommitdiffstats
path: root/javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml
blob: 7b1f1b6d4811fe5c751470f65a7d55ab701ca85e (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
type:      seq
sequence:
  -
    type:      map
    mapping:
      name:
        type:       str
        required:   yes
      email:
        type:       str
        required:   yes
        pattern:    /@/
      password:
        type:       text
        length:     { max: 16, min: 8 }
      age:
        type:       int
        range:      { max: 30, min: 18 }
        # or assert: 18 <= val && val <= 30
      blood:
        type:       str
        enum:
          - A
          - B
          - O
          - AB
      birth:
        type:       date
      memo:
        type:       any