File tree 2 files changed +44
-2
lines changed 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 31
31
]
32
32
},
33
33
{
34
- "description" : " relative pointer ref" ,
34
+ "description" : " relative pointer ref to object " ,
35
35
"schema" : {
36
36
"properties" : {
37
37
"foo" : {"type" : " integer" },
51
51
}
52
52
]
53
53
},
54
+ {
55
+ "description" : " relative pointer ref to array" ,
56
+ "schema" : {
57
+ "items" : [
58
+ {"type" : " integer" },
59
+ {"$ref" : " #/items/0" }
60
+ ]
61
+ },
62
+ "tests" : [
63
+ {
64
+ "description" : " match array" ,
65
+ "data" : [1 , 2 ],
66
+ "valid" : true
67
+ },
68
+ {
69
+ "description" : " mismatch array" ,
70
+ "data" : [1 , " foo" ],
71
+ "valid" : false
72
+ }
73
+ ]
74
+ },
54
75
{
55
76
"description" : " escaped pointer ref" ,
56
77
"schema" : {
Original file line number Diff line number Diff line change 31
31
]
32
32
},
33
33
{
34
- "description" : " relative pointer ref" ,
34
+ "description" : " relative pointer ref to object " ,
35
35
"schema" : {
36
36
"properties" : {
37
37
"foo" : {"type" : " integer" },
51
51
}
52
52
]
53
53
},
54
+ {
55
+ "description" : " relative pointer ref to array" ,
56
+ "schema" : {
57
+ "items" : [
58
+ {"type" : " integer" },
59
+ {"$ref" : " #/items/0" }
60
+ ]
61
+ },
62
+ "tests" : [
63
+ {
64
+ "description" : " match array" ,
65
+ "data" : [1 , 2 ],
66
+ "valid" : true
67
+ },
68
+ {
69
+ "description" : " mismatch array" ,
70
+ "data" : [1 , " foo" ],
71
+ "valid" : false
72
+ }
73
+ ]
74
+ },
54
75
{
55
76
"description" : " escaped pointer ref" ,
56
77
"schema" : {
You can’t perform that action at this time.
0 commit comments