blob: 62d8fe19231221af01c60f7c3dff0b16180ac36b (
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
|
---
name: fail-type-int-1
desc:
data:
A101
schema:
type: int
errors:
- "Value 'A101' is not of type 'int'. Path: ''"
---
name: fail-type-int-2
desc: Test wrong type as value in list
data:
- "foo"
schema:
type: seq
matching: "any"
seq:
- type: int
errors:
- "Value 'foo' is not of type 'int'. Path: '/0'"
---
name: fail-type-int-3
desc: Test that True/False is not valid integers
data:
- 1
- True
- False
schema:
type: seq
sequence:
- type: int
errors:
- "Value 'False' is not of type 'int'. Path: '/2'"
- "Value 'True' is not of type 'int'. Path: '/1'"
---
name: fail-type-int-4
desc: Test that hexadecimal characters fails with pattern
data:
0x12345678
schema:
type: text
pattern: ^0x[0-9A-F]{1,8}$
errors:
- "Value '305419896' does not match pattern '^0x[0-9A-F]{1,8}$'. Path: ''"
|