Skip to content

Commit

Permalink
fix: missing ApiProperty enum undefined handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nxht committed Jan 10, 2025
1 parent cb987e0 commit 5628e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decorators/api-property.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function createApiPropertyDecorator(
enum: enumValues
};
delete options.enum;
} else if ('enum' in options) {
} else if ('enum' in options && options.enum !== undefined) {
const enumValues = getEnumValues(options.enum);

options.enum = enumValues;
Expand Down

0 comments on commit 5628e8c

Please # to comment.