Commit d4bcad35 authored by Boris Kocherov's avatar Boris Kocherov

erp5_json_form: update filter to fit with draft-07

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