Allow uuidv5 for universal identifier (#18265)
Twenty apps are using v5
This commit is contained in:
+2
-2
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
+1
-1
@@ -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",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user