File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed
Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 3131 ]
3232 },
3333 {
34- "description" : " relative pointer ref" ,
34+ "description" : " relative pointer ref to object " ,
3535 "schema" : {
3636 "properties" : {
3737 "foo" : {"type" : " integer" },
5151 }
5252 ]
5353 },
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+ },
5475 {
5576 "description" : " escaped pointer ref" ,
5677 "schema" : {
Original file line number Diff line number Diff line change 3131 ]
3232 },
3333 {
34- "description" : " relative pointer ref" ,
34+ "description" : " relative pointer ref to object " ,
3535 "schema" : {
3636 "properties" : {
3737 "foo" : {"type" : " integer" },
5151 }
5252 ]
5353 },
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+ },
5475 {
5576 "description" : " escaped pointer ref" ,
5677 "schema" : {
You can’t perform that action at this time.
0 commit comments