From ae67789e2b5fa8269794ed9f5a5baf3fa78b9ef9 Mon Sep 17 00:00:00 2001 From: andrew morton Date: Wed, 8 Nov 2023 07:36:45 -0700 Subject: [PATCH] Update lib/services/schema-object-factory.ts Correct the type for the default Co-authored-by: Kamil Mysliwiec --- lib/services/schema-object-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/schema-object-factory.ts b/lib/services/schema-object-factory.ts index 539048202..bf42e9d7a 100644 --- a/lib/services/schema-object-factory.ts +++ b/lib/services/schema-object-factory.ts @@ -204,7 +204,7 @@ export class SchemaObjectFactory { if (!propertiesWithType) { return ''; } - const extensionProperties = Reflect.getMetadata(DECORATORS.API_EXTENSION, type) || []; + const extensionProperties = Reflect.getMetadata(DECORATORS.API_EXTENSION, type) || {}; const typeDefinition: SchemaObject = { type: 'object', properties: mapValues(keyBy(propertiesWithType, 'name'), (property) =>