summaryrefslogtreecommitdiff
path: root/tests/files/fail/test_enum.yaml
blob: 9f619dc57087962eeb10065b661133f2a3821785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
name: fail-enum-1
desc: Test simple enum
data:
  - A
  - B
  - O
schema:
  type: seq
  sequence:
    - type: str
      enum: [E, F, G, H]
errors:
  - "Enum 'A' does not exist. Path: '/0'"
  - "Enum 'B' does not exist. Path: '/1'"
  - "Enum 'O' does not exist. Path: '/2'"