summaryrefslogtreecommitdiff
path: root/tests/files/success/test_type_enum.yaml
blob: bde9bd71c26d0fcb5b392e10e62efd5150c6d77d (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
---
name: type-enum-1
desc: Test the most basic case for enum
data: C
schema:
  type: str
  enum: [A, B, C, D, E]
---
name: type-enum-2
desc: Test bool value inside list
data:
  - B
  - C
schema:
  type: seq
  sequence:
    - type: str
      enum: [A, B, C, D, E]
---
name: type-enum-3
desc: Test bool value in mapping
data:
  foo: A
schema:
  type: map
  mapping:
    foo:
      type: str
      enum: [A, B, C, D, E]
---
name: type-enum-4
desc: Test bool inside nested map & seq
data:
  foo:
    - C
schema:
  type: map
  mapping:
    foo:
      type: seq
      sequence:
        - type: str
          enum: [A, B, C, D, E]