Commit c487a737 authored by Boris Kocherov's avatar Boris Kocherov

fix json_pointer computation for allOf and anyOf

parent 460e6a96
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
var i, var i,
arr = []; arr = [];
for (i = 0; i < schema_array.length; i += 1) { for (i = 0; i < schema_array.length; i += 1) {
arr.push(expandSchema(g, schema_array[i], schema_path)); arr.push(expandSchema(g, schema_array[i], schema_path + '/allOf/' + i.toString()));
} }
return RSVP.all(arr); return RSVP.all(arr);
}) })
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
var i, var i,
arr = []; arr = [];
for (i = 0; i < schema_array.length; i += 1) { for (i = 0; i < schema_array.length; i += 1) {
arr.push(expandSchema(g, schema_array[i], schema_path + '/' + i.toString())); arr.push(expandSchema(g, schema_array[i], schema_path + '/anyOf/' + i.toString()));
} }
return RSVP.all(arr); return RSVP.all(arr);
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment