Commit bb4769fc authored by Boris Kocherov's avatar Boris Kocherov

schema.default value used for render object's type field.

parent 165e5f7a
......@@ -1211,7 +1211,12 @@
}
if (default_dict === undefined) {
default_dict = {};
if (json_field.hasOwnProperty('default')) {
default_dict = json_field.default;
g.props.changed = true;
} else {
default_dict = {};
}
}
return expandProperties(g, json_field.properties, schema_path + '/properties/', required)
......
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