mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +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() {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user