summaryrefslogtreecommitdiff
path: root/tests/files/success/test_sequence_multi.yaml
blob: 432145c509db19825ebe5b13b68f4040e0e36f8d (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
---
name: seq-multi-1
desc: Test that multiple sequence values is supported
data:
  - "foo"
  - 123
schema:
  type: seq
  matching: "any"
  seq:
    - type: str
    - type: int
---
name: seq-multi-2
desc: Test that multiple sequence values with matching 'all' is supported
data:
  - "foo"
  - "123"
schema:
  type: seq
  matching: "all"
  seq:
    - type: str
    - type: str
---
name: seq-multi-3
desc: Test that multiple sequence values with matching '*' is supported
data:
  - "foo"
schema:
  type: seq
  matching: "*"
  seq:
    - type: bool
    - type: int
---
name: seq-multi-4
desc: Test that multiple sequence values with nested data structures work
data:
  - foo: 123
  - "foobar"
schema:
  type: seq
  matching: "any"
  seq:
    - type: str
    - type: map
      mapping:
        foo:
          type: int
---
name: sq-multi-5
desc: Test that multiple sequence vlaues with nested lists works
data:
  - - 123
  - "foobar"
schema:
  type: seq
  matching: "any"
  seq:
    - type: str
    - type: seq
      sequence:
        - type: int