Commit bb4769fc authored by Boris Kocherov's avatar Boris Kocherov

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

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