Skip to content

Commit ae67789

Browse files
drewishkamilmysliwiec
andauthoredNov 8, 2023
Update lib/services/schema-object-factory.ts
Correct the type for the default Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
1 parent 693889f commit ae67789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/services/schema-object-factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class SchemaObjectFactory {
204204
if (!propertiesWithType) {
205205
return '';
206206
}
207-
const extensionProperties = Reflect.getMetadata(DECORATORS.API_EXTENSION, type) || [];
207+
const extensionProperties = Reflect.getMetadata(DECORATORS.API_EXTENSION, type) || {};
208208
const typeDefinition: SchemaObject = {
209209
type: 'object',
210210
properties: mapValues(keyBy(propertiesWithType, 'name'), (property) =>

0 commit comments

Comments
 (0)
Please sign in to comment.