diff --git a/lib/components/JsonSchemaView/json-schema-view.js b/lib/components/JsonSchemaView/json-schema-view.js index ba89fa77..47f46326 100644 --- a/lib/components/JsonSchemaView/json-schema-view.js +++ b/lib/components/JsonSchemaView/json-schema-view.js @@ -41,9 +41,9 @@ export class JsonSchemaView extends BaseComponent { init() { this.dereference(); - const formatter = new JSONSchemaView(this.componentSchema); this.componentSchema.title = this.componentSchema.title || this.title; this.componentSchema.description = this.componentSchema.description || this.description; + const formatter = new JSONSchemaView(this.componentSchema, 1); this.element.appendChild(formatter.render()); } }