From e2c1917a8fa9dfc81fb9b9922f71ff2f43b181ef Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 15 Jul 2024 16:31:32 +0200 Subject: [PATCH] fix: extract extensions of child items in case it is a single object --- src/services/models/Schema.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/models/Schema.ts b/src/services/models/Schema.ts index 44b04279e0..552775ad6f 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), + }; + } } }