mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 10:03:45 +03:00
fix: extract extensions of child items in case it is a single object
This commit is contained in:
parent
3658b6def4
commit
56eaef76ff
|
@ -96,6 +96,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),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -459,7 +466,6 @@ function buildFields(
|
|||
refsStack,
|
||||
);
|
||||
});
|
||||
|
||||
if (options.sortPropsAlphabetically) {
|
||||
fields = sortByField(fields, 'name');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user