summaryrefslogtreecommitdiff
path: root/tests/files/fail/test_required.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/fail/test_required.yaml')
-rw-r--r--tests/files/fail/test_required.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/files/fail/test_required.yaml b/tests/files/fail/test_required.yaml
new file mode 100644
index 0000000..6038544
--- /dev/null
+++ b/tests/files/fail/test_required.yaml
@@ -0,0 +1,19 @@
+---
+name: fail-required-1
+desc:
+data:
+ - name: foo
+ email: foo@mail.com
+ - email: bar@mail.net
+schema:
+ type: seq
+ sequence:
+ - type: map
+ mapping:
+ name:
+ type: str
+ required: True
+ email:
+ type: str
+errors:
+ - "Cannot find required key 'name'. Path: '/1'"