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