mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +03:00
Open only first level of schema
This commit is contained in:
parent
3a61d252d3
commit
55d05b3e03
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user