mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
Merge 56eaef76ff
into 3ae251b7e4
This commit is contained in:
commit
fc39861013
|
@ -97,6 +97,13 @@ export class SchemaModel {
|
||||||
|
|
||||||
if (options.showExtensions) {
|
if (options.showExtensions) {
|
||||||
this.extensions = extractExtensions(this.schema, options.showExtensions);
|
this.extensions = extractExtensions(this.schema, options.showExtensions);
|
||||||
|
|
||||||
|
if (typeof this.schema.items === 'object') {
|
||||||
|
this.extensions = {
|
||||||
|
...this.extensions,
|
||||||
|
...extractExtensions(this.schema.items, options.showExtensions),
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -462,7 +469,6 @@ function buildFields(
|
||||||
refsStack,
|
refsStack,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (options.sortPropsAlphabetically) {
|
if (options.sortPropsAlphabetically) {
|
||||||
fields = sortByField(fields, 'name');
|
fields = sortByField(fields, 'name');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user