blob: f4e6d2e05c7fa53604e4c122495b911ca255bf33 (
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
65
66
67
68
69
70
|
---
name: fail-type-text-1
desc: Test simples text type
data: True
schema:
type: text
errors:
- "Value 'True' is not of type 'text'. Path: ''"
---
name: fail-type-text-2
desc: Test possible values as values in seq
data:
- abc
- 123
- 3.14159
- True
schema:
type: seq
sequence:
- type: text
errors:
- "Value 'True' is not of type 'text'. Path: '/3'"
---
name: fail-type-text-3
desc: Test possible values as values in map
data:
foo: abc
bar: 123
qwe: 3.14159
rty: True
schema:
type: map
mapping:
foo:
type: text
bar:
type: text
qwe:
type: text
rty:
type: text
errors:
- "Value 'True' is not of type 'text'. Path: '/rty'"
---
name: fail-type-text-4
desc: Test that text type works inside nested map, seq, map
data:
foobar:
- foo: abc
bar: 123
qwe: 3.14159
rty: True
schema:
type: map
mapping:
foobar:
type: seq
sequence:
- type: map
mapping:
foo:
type: text
bar:
type: text
qwe:
type: text
rty:
type: text
errors:
- "Value 'True' is not of type 'text'. Path: '/foobar/0/rty'"
|