사소한 리팩토링

This commit is contained in:
static
2025-01-30 18:46:16 +09:00
parent 23c82fee12
commit 0a5ef2b970
12 changed files with 26 additions and 33 deletions

View File

@@ -9,6 +9,7 @@ export const fileInfoResponse = z.object({
dekVersion: z.string().datetime(),
contentType: z
.string()
.trim()
.nonempty()
.refine((value) => mime.getExtension(value) !== null), // MIME type
contentIv: z.string().base64().nonempty(),
@@ -49,6 +50,7 @@ export const fileUploadRequest = z.object({
contentHmac: z.string().base64().nonempty(),
contentType: z
.string()
.trim()
.nonempty()
.refine((value) => mime.getExtension(value) !== null), // MIME type
contentIv: z.string().base64().nonempty(),