Allow uuidv5 for universal identifier (#18265)

Twenty apps are using v5
This commit is contained in:
Paul Rastoin
2026-02-26 12:13:38 +01:00
committed by GitHub
parent f11d76d6cf
commit 5e19361494
2 changed files with 3 additions and 3 deletions
@@ -338,12 +338,12 @@ export abstract class WorkspaceEntityMigrationBuilderService<
}: UniversalFlatEntityValidationArgs<T>): FlatEntityValidationError[] {
if (
!uuidValidate(universalIdentifier) ||
uuidVersion(universalIdentifier) !== 4
uuidVersion(universalIdentifier) < 4
) {
return [
{
code: FlatEntityMapsExceptionCode.ENTITY_MALFORMED,
message: `Invalid universalIdentifier: "${universalIdentifier}" is not a valid UUID v4`,
message: `Invalid universalIdentifier: "${universalIdentifier}" is not a valid UUID, uuid version should be greater than 4`,
value: universalIdentifier,
},
];
@@ -10,7 +10,7 @@ exports[`Install application should fail when entity does not exist should fail
"errors": [
{
"code": "ENTITY_MALFORMED",
"message": "Invalid universalIdentifier: "not-a-valid-uuid" is not a valid UUID v4",
"message": "Invalid universalIdentifier: "not-a-valid-uuid" is not a valid UUID, uuid version should be greater than 4",
"value": "not-a-valid-uuid",
},
],