From 55d05b3e036ba5ada0cc973132c526e298a2a506 Mon Sep 17 00:00:00 2001 From: Roman Gotsiy Date: Sat, 17 Oct 2015 23:31:01 +0300 Subject: [PATCH] Open only first level of schema --- lib/components/JsonSchemaView/json-schema-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }