mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-04 01:45:47 +03:00
fix regression
This commit is contained in:
parent
328fb647b3
commit
6965e69c8c
|
@ -63,6 +63,12 @@ export default class JsonSchema extends BaseComponent {
|
||||||
this.componentSchema.required.forEach(prop => this.requiredMap[prop] = true);
|
this.componentSchema.required.forEach(prop => this.requiredMap[prop] = true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!schema.properties) {
|
||||||
|
this.isTrivial = true;
|
||||||
|
this._displayType = schema.type;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let discriminatorFieldIdx = -1;
|
let discriminatorFieldIdx = -1;
|
||||||
let props = Object.keys(schema.properties).map((prop, idx) => {
|
let props = Object.keys(schema.properties).map((prop, idx) => {
|
||||||
let propData = schema.properties[prop];
|
let propData = schema.properties[prop];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user