Commit 2a7ca697 authored by Boris Kocherov's avatar Boris Kocherov

fix anyOf()

parent e5d7ec71
...@@ -254,13 +254,13 @@ ...@@ -254,13 +254,13 @@
z, z,
schema_arr = []; schema_arr = [];
for (i = 0; i < arr.length; i += 1) { for (i = 0; i < arr.length; i += 1) {
for (z = 0; z < arr[i][z].length; z += 1) { for (z = 0; z < arr[i].length; z += 1) {
if (arr[i][z].schema === true) { if (arr[i][z].schema === true) {
// or(any, restricted, restricted) simplify to any // or(any, restricted, restricted) simplify to any
return [arr[i][z]]; return [arr[i][z]];
} }
schema_arr.push(arr[i][z]);
} }
schema_arr.concat(arr[i]);
} }
return schema_arr; return schema_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