From 27ab8f2900ed63cc22aa08cb8e9626c454dd4410 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 17 Aug 2023 01:40:36 -0400 Subject: [PATCH] fix(striker-ui-api): allow keyword 'new' as manifest UUID in manifest creation --- .../src/lib/request_handlers/manifest/buildManifest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui-api/src/lib/request_handlers/manifest/buildManifest.ts b/striker-ui-api/src/lib/request_handlers/manifest/buildManifest.ts index a6fcda08..60d16ddc 100644 --- a/striker-ui-api/src/lib/request_handlers/manifest/buildManifest.ts +++ b/striker-ui-api/src/lib/request_handlers/manifest/buildManifest.ts @@ -51,7 +51,7 @@ export const buildManifest = async ( const manifestUuid = sanitize(rawManifestUuid, 'string'); assert( - REP_UUID.test(manifestUuid), + manifestUuid === 'new' || REP_UUID.test(manifestUuid), `Manifest UUID must be a UUIDv4; got [${manifestUuid}]`, );