mirror of
https://github.com/Redocly/redoc.git
synced 2025-04-19 16:22:05 +03:00
Merge 56eaef76ff
into cab07bad3b
This commit is contained in:
commit
2f16a01597
|
@ -97,6 +97,13 @@ export class SchemaModel {
|
|||
|
||||
if (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,
|
||||
);
|
||||
});
|
||||
|
||||
if (options.sortPropsAlphabetically) {
|
||||
fields = sortByField(fields, 'name');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user