Commit cd75b231 authored by Boris Kocherov's avatar Boris Kocherov

fix returned empty object and null values

parent 0bb261db
......@@ -1357,7 +1357,12 @@
}
}
if (count_of_values === 0) {
return;
switch (g.props.type) {
case "object":
return {};
default:
return null;
}
}
return multi_level_dict[""];
});
......@@ -1566,6 +1571,7 @@
if (!options.type && schema && !schema.type) {
options.type = guessSchemaType(schema);
}
g.props.type = options.type;
while (root.firstChild) {
root.removeChild(root.firstChild);
}
......
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