Commit dbaf4a54 authored by Boris Kocherov's avatar Boris Kocherov

checkSchemaArrOneChoise() correct check if schema === true

parent 1acb3955
...@@ -184,6 +184,9 @@ ...@@ -184,6 +184,9 @@
function checkSchemaArrOneChoise(schema_arr) { function checkSchemaArrOneChoise(schema_arr) {
if (schema_arr.length === 1) { if (schema_arr.length === 1) {
if (schema_arr[0].schema === true) {
return false;
}
if (schema_arr[0].schema.type instanceof Array) { if (schema_arr[0].schema.type instanceof Array) {
return schema_arr[0].schema.type.length <= 1; return schema_arr[0].schema.type.length <= 1;
} }
......
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