Skip to content

Commit 776196a

Browse files
committed
small fix
1 parent 8cc03df commit 776196a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/core/src/v3/schemas

‎packages/core/src/v3/schemas/api.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export type IdempotencyKeyOptionsSchema = z.infer<typeof IdempotencyKeyOptionsSc
274274
// with PrismaClientValidationError. Accept the intent and stringify here.
275275
const ConcurrencyKeySchema = z.union([z.string(), z.number()]).transform((value) => String(value));
276276

277-
const ExternalDeploymentId: z.ZodType<string | undefined> = z.preprocess((value) => {
277+
const ExternalDeploymentId = z.preprocess((value) => {
278278
// `null` is the opt-out sentinel callers write; treat it as absent, not a validation error.
279279
if (value === null) {
280280
return undefined;
@@ -286,7 +286,7 @@ const ExternalDeploymentId: z.ZodType<string | undefined> = z.preprocess((value)
286286

287287
const trimmed = value.trim();
288288
return trimmed === "" ? undefined : trimmed;
289-
}, z.string().max(EXTERNAL_DEPLOYMENT_ID_MAX_LENGTH, `externalId must be at most ${EXTERNAL_DEPLOYMENT_ID_MAX_LENGTH} characters`).optional());
289+
}, z.string().max(EXTERNAL_DEPLOYMENT_ID_MAX_LENGTH, `externalId must be at most ${EXTERNAL_DEPLOYMENT_ID_MAX_LENGTH} characters`).optional()) as unknown as z.ZodOptional<z.ZodString>;
290290

291291
export const TriggerTaskRequestBody = z
292292
.object({

0 commit comments

Comments
 (0)