Commit 088946da authored by Boris Kocherov's avatar Boris Kocherov

jslint fix

parent e51a0e05
......@@ -61,9 +61,9 @@
var schemas = arr[0],
docs = arr[1];
g.props.schemas = docs.filter(function (v) {
var suffix = "_schema.json";
return v.indexOf(suffix, v.length - suffix.length) !== -1;
});
var suffix = "_schema.json";
return v.indexOf(suffix, v.length - suffix.length) !== -1;
});
g.props.schemas = g.props.schemas.concat([
"http://json-schema.org/draft-07/schema",
"http://json-schema.org/draft-06/schema",
......
......@@ -378,9 +378,8 @@
if (schema_arr.length === 1) {
if (schema_arr[0].type instanceof Array) {
return schema_arr[0].type.length <= 1;
} else {
return true;
}
return true;
}
return false;
}
......
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