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) =>