File tree 12 files changed +72
-68
lines changed
12 files changed +72
-68
lines changed Original file line number Diff line number Diff line change 33
33
"description" : " objects are deep compared" ,
34
34
"data" : {"foo" : false },
35
35
"valid" : false
36
+ },
37
+ {
38
+ "description" : " valid object matches" ,
39
+ "data" : {"foo" : 12 },
40
+ "valid" : true
41
+ },
42
+ {
43
+ "description" : " extra properties in object is invalid" ,
44
+ "data" : {"foo" : 12 , "boo" : 42 },
45
+ "valid" : false
36
46
}
37
47
]
38
48
},
Original file line number Diff line number Diff line change 1
1
[
2
- {
3
- "description" : " ECMA 262 regex non-compliance" ,
4
- "schema" : { "format" : " regex" },
5
- "tests" : [
6
- {
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET" ,
8
- "data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
9
- "valid" : false
10
- }
11
- ]
12
- },
13
2
{
14
3
"description" : " ECMA 262 regex $ does not match trailing newline" ,
15
4
"schema" : {
Original file line number Diff line number Diff line change 75
75
{
76
76
"description" : " escaped pointer ref" ,
77
77
"schema" : {
78
- "tilde~field" : {"type" : " integer" },
79
- "slash/field" : {"type" : " integer" },
80
- "percent%field" : {"type" : " integer" },
78
+ "definitions" : {
79
+ "tilde~field" : {"type" : " integer" },
80
+ "slash/field" : {"type" : " integer" },
81
+ "percent%field" : {"type" : " integer" }
82
+ },
81
83
"properties" : {
82
- "tilde" : {"$ref" : " #/tilde~0field" },
83
- "slash" : {"$ref" : " #/slash~1field" },
84
- "percent" : {"$ref" : " #/percent%25field" }
84
+ "tilde" : {"$ref" : " #/definitions/ tilde~0field" },
85
+ "slash" : {"$ref" : " #/definitions/ slash~1field" },
86
+ "percent" : {"$ref" : " #/definitions/ percent%25field" }
85
87
}
86
88
},
87
89
"tests" : [
Original file line number Diff line number Diff line change 33
33
"description" : " objects are deep compared" ,
34
34
"data" : {"foo" : false },
35
35
"valid" : false
36
+ },
37
+ {
38
+ "description" : " valid object matches" ,
39
+ "data" : {"foo" : 12 },
40
+ "valid" : true
41
+ },
42
+ {
43
+ "description" : " extra properties in object is invalid" ,
44
+ "data" : {"foo" : 12 , "boo" : 42 },
45
+ "valid" : false
36
46
}
37
47
]
38
48
},
Original file line number Diff line number Diff line change 1
1
[
2
- {
3
- "description" : " ECMA 262 regex non-compliance" ,
4
- "schema" : { "format" : " regex" },
5
- "tests" : [
6
- {
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET" ,
8
- "data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
9
- "valid" : false
10
- }
11
- ]
12
- },
13
2
{
14
3
"description" : " ECMA 262 regex $ does not match trailing newline" ,
15
4
"schema" : {
Original file line number Diff line number Diff line change 75
75
{
76
76
"description" : " escaped pointer ref" ,
77
77
"schema" : {
78
- "tilde~field" : {"type" : " integer" },
79
- "slash/field" : {"type" : " integer" },
80
- "percent%field" : {"type" : " integer" },
78
+ "definitions" : {
79
+ "tilde~field" : {"type" : " integer" },
80
+ "slash/field" : {"type" : " integer" },
81
+ "percent%field" : {"type" : " integer" }
82
+ },
81
83
"properties" : {
82
- "tilde" : {"$ref" : " #/tilde~0field" },
83
- "slash" : {"$ref" : " #/slash~1field" },
84
- "percent" : {"$ref" : " #/percent%25field" }
84
+ "tilde" : {"$ref" : " #/definitions/ tilde~0field" },
85
+ "slash" : {"$ref" : " #/definitions/ slash~1field" },
86
+ "percent" : {"$ref" : " #/definitions/ percent%25field" }
85
87
}
86
88
},
87
89
"tests" : [
Original file line number Diff line number Diff line change 33
33
"description" : " objects are deep compared" ,
34
34
"data" : {"foo" : false },
35
35
"valid" : false
36
+ },
37
+ {
38
+ "description" : " valid object matches" ,
39
+ "data" : {"foo" : 12 },
40
+ "valid" : true
41
+ },
42
+ {
43
+ "description" : " extra properties in object is invalid" ,
44
+ "data" : {"foo" : 12 , "boo" : 42 },
45
+ "valid" : false
36
46
}
37
47
]
38
48
},
Original file line number Diff line number Diff line change 1
1
[
2
- {
3
- "description" : " ECMA 262 regex non-compliance" ,
4
- "schema" : { "format" : " regex" },
5
- "tests" : [
6
- {
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET" ,
8
- "data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
9
- "valid" : false
10
- }
11
- ]
12
- },
13
2
{
14
3
"description" : " ECMA 262 regex $ does not match trailing newline" ,
15
4
"schema" : {
Original file line number Diff line number Diff line change 75
75
{
76
76
"description" : " escaped pointer ref" ,
77
77
"schema" : {
78
- "tilde~field" : {"type" : " integer" },
79
- "slash/field" : {"type" : " integer" },
80
- "percent%field" : {"type" : " integer" },
78
+ "definitions" : {
79
+ "tilde~field" : {"type" : " integer" },
80
+ "slash/field" : {"type" : " integer" },
81
+ "percent%field" : {"type" : " integer" }
82
+ },
81
83
"properties" : {
82
- "tilde" : {"$ref" : " #/tilde~0field" },
83
- "slash" : {"$ref" : " #/slash~1field" },
84
- "percent" : {"$ref" : " #/percent%25field" }
84
+ "tilde" : {"$ref" : " #/definitions/ tilde~0field" },
85
+ "slash" : {"$ref" : " #/definitions/ slash~1field" },
86
+ "percent" : {"$ref" : " #/definitions/ percent%25field" }
85
87
}
86
88
},
87
89
"tests" : [
Original file line number Diff line number Diff line change 33
33
"description" : " objects are deep compared" ,
34
34
"data" : {"foo" : false },
35
35
"valid" : false
36
+ },
37
+ {
38
+ "description" : " valid object matches" ,
39
+ "data" : {"foo" : 12 },
40
+ "valid" : true
41
+ },
42
+ {
43
+ "description" : " extra properties in object is invalid" ,
44
+ "data" : {"foo" : 12 , "boo" : 42 },
45
+ "valid" : false
36
46
}
37
47
]
38
48
},
Original file line number Diff line number Diff line change 1
1
[
2
- {
3
- "description" : " ECMA 262 regex non-compliance" ,
4
- "schema" : { "format" : " regex" },
5
- "tests" : [
6
- {
7
- "description" : " ECMA 262 has no support for \\ Z anchor from .NET" ,
8
- "data" : " ^\\ S(|(.|\\ n)*\\ S)\\ Z" ,
9
- "valid" : false
10
- }
11
- ]
12
- },
13
2
{
14
3
"description" : " ECMA 262 regex $ does not match trailing newline" ,
15
4
"schema" : {
Original file line number Diff line number Diff line change 75
75
{
76
76
"description" : " escaped pointer ref" ,
77
77
"schema" : {
78
- "tilde~field" : {"type" : " integer" },
79
- "slash/field" : {"type" : " integer" },
80
- "percent%field" : {"type" : " integer" },
78
+ "definitions" : {
79
+ "tilde~field" : {"type" : " integer" },
80
+ "slash/field" : {"type" : " integer" },
81
+ "percent%field" : {"type" : " integer" }
82
+ },
81
83
"properties" : {
82
- "tilde" : {"$ref" : " #/tilde~0field" },
83
- "slash" : {"$ref" : " #/slash~1field" },
84
- "percent" : {"$ref" : " #/percent%25field" }
84
+ "tilde" : {"$ref" : " #/definitions/ tilde~0field" },
85
+ "slash" : {"$ref" : " #/definitions/ slash~1field" },
86
+ "percent" : {"$ref" : " #/definitions/ percent%25field" }
85
87
}
86
88
},
87
89
"tests" : [
You can’t perform that action at this time.
0 commit comments