diff --git a/src/services/models/Schema.ts b/src/services/models/Schema.ts index 44b04279..462f27b3 100644 --- a/src/services/models/Schema.ts +++ b/src/services/models/Schema.ts @@ -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'); }