summaryrefslogtreecommitdiff
path: root/tests/files/fail/test_enum.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/fail/test_enum.yaml')
-rw-r--r--tests/files/fail/test_enum.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/files/fail/test_enum.yaml b/tests/files/fail/test_enum.yaml
new file mode 100644
index 0000000..9f619dc
--- /dev/null
+++ b/tests/files/fail/test_enum.yaml
@@ -0,0 +1,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'"