diff --git a/packages/twenty-server/src/metadata/decorators/is-valid-name.decorator.ts b/packages/twenty-server/src/metadata/decorators/is-valid-name.decorator.ts index 8bb2ac60de4e..afbc9314d8ec 100644 --- a/packages/twenty-server/src/metadata/decorators/is-valid-name.decorator.ts +++ b/packages/twenty-server/src/metadata/decorators/is-valid-name.decorator.ts @@ -13,7 +13,9 @@ export function IsValidName(validationOptions?: ValidationOptions) { options: validationOptions, validator: { validate(value: any) { - return /^(?!(?:not|or|and)$)[^'\"\\;.=*/]+$/.test(value); + return /^(?!(?:not|or|and|Int|Float|Boolean|String|ID)$)[^'\"\\;.=*/]+$/.test( + value, + ); }, defaultMessage(args: ValidationArguments) { return `${args.property} has failed the name validation check`;