diff --git a/src/schema.ts b/src/schema.ts index 9af967e..8027023 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -90,7 +90,7 @@ const decode64Schema = z.string().transform((value, ctx) => { const bytes = Uint8Array.from(binString, (m) => m.codePointAt(0)!); return new TextDecoder().decode(bytes); } catch (_e) { - ctx.addIssue({ code: z.ZodIssueCode.custom, message: 'Invalid base64' }); + ctx.addIssue({ code: z.ZodIssueCode.custom, message: 'Invalid base64', fatal: true }); return z.NEVER; } });