Commit 96f59c1d authored by Boris Kocherov's avatar Boris Kocherov

fix checkSchemaArrOneChoise()

parent 9694691b
......@@ -183,8 +183,8 @@
function checkSchemaArrOneChoise(schema_arr) {
if (schema_arr.length === 1) {
if (schema_arr[0].type instanceof Array) {
return schema_arr[0].type.length <= 1;
if (schema_arr[0].schema.type instanceof Array) {
return schema_arr[0].schema.type.length <= 1;
}
return true;
}
......
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