Skip to content

Commit

Permalink
Update lib/services/schema-object-factory.ts
Browse files Browse the repository at this point in the history
Correct the type for the default

Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
  • Loading branch information
drewish and kamilmysliwiec authored Nov 8, 2023
1 parent 693889f commit ae67789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/schema-object-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit ae67789

Please sign in to comment.