Open only first level of schema

This commit is contained in:
Roman Gotsiy 2015-10-17 23:31:01 +03:00
parent 3a61d252d3
commit 55d05b3e03

View File

@ -41,9 +41,9 @@ export class JsonSchemaView extends BaseComponent {
init() { init() {
this.dereference(); this.dereference();
const formatter = new JSONSchemaView(this.componentSchema);
this.componentSchema.title = this.componentSchema.title || this.title; this.componentSchema.title = this.componentSchema.title || this.title;
this.componentSchema.description = this.componentSchema.description || this.description; this.componentSchema.description = this.componentSchema.description || this.description;
const formatter = new JSONSchemaView(this.componentSchema, 1);
this.element.appendChild(formatter.render()); this.element.appendChild(formatter.render());
} }
} }