Commit fcf3a600 authored by Boris Kocherov's avatar Boris Kocherov

update filter to fit with draft-07

parent 866a8d1a
......@@ -871,6 +871,7 @@
case "maxItems":
case "minItems":
case "uniqueItems":
case "contains":
if (!checkSchemaType(current_document.type, "array")) {
return false;
}
......@@ -881,6 +882,7 @@
case "additionalProperties":
case "properties":
case "patternProperties":
case "dependencies":
case "propertyNames":
if (!checkSchemaType(current_document.type, "object")) {
return false;
......@@ -889,6 +891,8 @@
case "maxLength":
case "minLength":
case "pattern":
case "contentEncoding":
case "contentMediaType":
if (!checkSchemaType(current_document.type, "string")) {
return false;
}
......@@ -937,6 +941,10 @@
case "exclusiveMaximum":
case "minimum":
case "exclusiveMinimum":
case "contains":
case "dependencies":
case "contentEncoding":
case "contentMediaType":
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