Commit e29bb9e5 authored by Jérome Perrin's avatar Jérome Perrin

update static version

parent 24679bc4
...@@ -318,9 +318,14 @@ ...@@ -318,9 +318,14 @@
if (class_definition.properties.hasOwnProperty(property)) { if (class_definition.properties.hasOwnProperty(property)) {
if (class_definition.properties[property].$ref) { if (class_definition.properties[property].$ref) {
referenced = expandSchema(resolveReference(class_definition.properties[property].$ref, full_schema.class_definition), full_schema); referenced = expandSchema(resolveReference(class_definition.properties[property].$ref, full_schema.class_definition), full_schema);
//expanded_class_definition.properties[property] = referenced;
$.extend(expanded_class_definition.properties[property], referenced); $.extend(expanded_class_definition.properties[property], referenced);
delete expanded_class_definition.properties[property].$ref; delete expanded_class_definition.properties[property].$ref;
} else {
if (class_definition.properties[property].type === "object") {
// no reference, but we expand anyway because we need to recurse in case there is a ref in an object property
referenced = expandSchema(class_definition.properties[property], full_schema);
$.extend(expanded_class_definition.properties[property], referenced);
}
} }
} }
} }
......
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