Commit 92c0ac7d authored by Boris Kocherov's avatar Boris Kocherov

XXX i believe it reverted in future

parent 6e7b33dc
...@@ -284,6 +284,17 @@ ...@@ -284,6 +284,17 @@
json_field.type = getDocumentType(default_value); json_field.type = getDocumentType(default_value);
} }
// XXX bad peace of code
// we can not change schema
// but our schema in slapos bad
if (!json_field.type) {
if (json_field.properties &&
json_field.required &&
json_field.required.length > 0) {
json_field.type = "object";
}
}
div = document.createElement("div"); div = document.createElement("div");
div.setAttribute("class", "subfield"); div.setAttribute("class", "subfield");
div.title = json_field.description; div.title = json_field.description;
......
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