File tree Expand file tree Collapse file tree 6 files changed +180
-0
lines changed
draft-next/optional/format
draft2019-09/optional/format
draft2020-12/optional/format Expand file tree Collapse file tree 6 files changed +180
-0
lines changed Original file line number Diff line number Diff line change 6
6
"format" : " uri"
7
7
},
8
8
"tests" : [
9
+ {
10
+ "description" : " all string formats ignore integers" ,
11
+ "data" : 12 ,
12
+ "valid" : true
13
+ },
14
+ {
15
+ "description" : " all string formats ignore floats" ,
16
+ "data" : 13.7 ,
17
+ "valid" : true
18
+ },
19
+ {
20
+ "description" : " all string formats ignore objects" ,
21
+ "data" : {},
22
+ "valid" : true
23
+ },
24
+ {
25
+ "description" : " all string formats ignore arrays" ,
26
+ "data" : [],
27
+ "valid" : true
28
+ },
29
+ {
30
+ "description" : " all string formats ignore booleans" ,
31
+ "data" : false ,
32
+ "valid" : true
33
+ },
34
+ {
35
+ "description" : " all string formats ignore nulls" ,
36
+ "data" : null ,
37
+ "valid" : true
38
+ },
9
39
{
10
40
"description" : " a valid URL with anchor tag" ,
11
41
"data" : " http://foo.bar/?baz=qux#quux" ,
Original file line number Diff line number Diff line change 6
6
"format" : " uri"
7
7
},
8
8
"tests" : [
9
+ {
10
+ "description" : " all string formats ignore integers" ,
11
+ "data" : 12 ,
12
+ "valid" : true
13
+ },
14
+ {
15
+ "description" : " all string formats ignore floats" ,
16
+ "data" : 13.7 ,
17
+ "valid" : true
18
+ },
19
+ {
20
+ "description" : " all string formats ignore objects" ,
21
+ "data" : {},
22
+ "valid" : true
23
+ },
24
+ {
25
+ "description" : " all string formats ignore arrays" ,
26
+ "data" : [],
27
+ "valid" : true
28
+ },
29
+ {
30
+ "description" : " all string formats ignore booleans" ,
31
+ "data" : false ,
32
+ "valid" : true
33
+ },
34
+ {
35
+ "description" : " all string formats ignore nulls" ,
36
+ "data" : null ,
37
+ "valid" : true
38
+ },
9
39
{
10
40
"description" : " a valid URL with anchor tag" ,
11
41
"data" : " http://foo.bar/?baz=qux#quux" ,
Original file line number Diff line number Diff line change 6
6
"format" : " uri"
7
7
},
8
8
"tests" : [
9
+ {
10
+ "description" : " all string formats ignore integers" ,
11
+ "data" : 12 ,
12
+ "valid" : true
13
+ },
14
+ {
15
+ "description" : " all string formats ignore floats" ,
16
+ "data" : 13.7 ,
17
+ "valid" : true
18
+ },
19
+ {
20
+ "description" : " all string formats ignore objects" ,
21
+ "data" : {},
22
+ "valid" : true
23
+ },
24
+ {
25
+ "description" : " all string formats ignore arrays" ,
26
+ "data" : [],
27
+ "valid" : true
28
+ },
29
+ {
30
+ "description" : " all string formats ignore booleans" ,
31
+ "data" : false ,
32
+ "valid" : true
33
+ },
34
+ {
35
+ "description" : " all string formats ignore nulls" ,
36
+ "data" : null ,
37
+ "valid" : true
38
+ },
9
39
{
10
40
"description" : " a valid URL with anchor tag" ,
11
41
"data" : " http://foo.bar/?baz=qux#quux" ,
Original file line number Diff line number Diff line change 3
3
"description" : " validation of URIs" ,
4
4
"schema" : { "format" : " uri" },
5
5
"tests" : [
6
+ {
7
+ "description" : " all string formats ignore integers" ,
8
+ "data" : 12 ,
9
+ "valid" : true
10
+ },
11
+ {
12
+ "description" : " all string formats ignore floats" ,
13
+ "data" : 13.7 ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " all string formats ignore objects" ,
18
+ "data" : {},
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " all string formats ignore arrays" ,
23
+ "data" : [],
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " all string formats ignore booleans" ,
28
+ "data" : false ,
29
+ "valid" : true
30
+ },
31
+ {
32
+ "description" : " all string formats ignore nulls" ,
33
+ "data" : null ,
34
+ "valid" : true
35
+ },
6
36
{
7
37
"description" : " a valid URL with anchor tag" ,
8
38
"data" : " http://foo.bar/?baz=qux#quux" ,
Original file line number Diff line number Diff line change 3
3
"description" : " validation of URIs" ,
4
4
"schema" : { "format" : " uri" },
5
5
"tests" : [
6
+ {
7
+ "description" : " all string formats ignore integers" ,
8
+ "data" : 12 ,
9
+ "valid" : true
10
+ },
11
+ {
12
+ "description" : " all string formats ignore floats" ,
13
+ "data" : 13.7 ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " all string formats ignore objects" ,
18
+ "data" : {},
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " all string formats ignore arrays" ,
23
+ "data" : [],
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " all string formats ignore booleans" ,
28
+ "data" : false ,
29
+ "valid" : true
30
+ },
31
+ {
32
+ "description" : " all string formats ignore nulls" ,
33
+ "data" : null ,
34
+ "valid" : true
35
+ },
6
36
{
7
37
"description" : " a valid URL with anchor tag" ,
8
38
"data" : " http://foo.bar/?baz=qux#quux" ,
Original file line number Diff line number Diff line change 3
3
"description" : " validation of URIs" ,
4
4
"schema" : { "format" : " uri" },
5
5
"tests" : [
6
+ {
7
+ "description" : " all string formats ignore integers" ,
8
+ "data" : 12 ,
9
+ "valid" : true
10
+ },
11
+ {
12
+ "description" : " all string formats ignore floats" ,
13
+ "data" : 13.7 ,
14
+ "valid" : true
15
+ },
16
+ {
17
+ "description" : " all string formats ignore objects" ,
18
+ "data" : {},
19
+ "valid" : true
20
+ },
21
+ {
22
+ "description" : " all string formats ignore arrays" ,
23
+ "data" : [],
24
+ "valid" : true
25
+ },
26
+ {
27
+ "description" : " all string formats ignore booleans" ,
28
+ "data" : false ,
29
+ "valid" : true
30
+ },
31
+ {
32
+ "description" : " all string formats ignore nulls" ,
33
+ "data" : null ,
34
+ "valid" : true
35
+ },
6
36
{
7
37
"description" : " a valid URL with anchor tag" ,
8
38
"data" : " http://foo.bar/?baz=qux#quux" ,
You can’t perform that action at this time.
0 commit comments