feat: initial tests for api-keys endpoint

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-26 00:42:12 +01:00
1 parent f80f23d3c3
commit 9e8be659c5
6 files changed
+95 -13

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { z } from "zod";
const schemaApiKey = z
.object({
expiresAt: z.string().transform((date: string) => new Date(date)).optional(), // default is 30 days
expiresAt: z.string().optional(), // default is 30 days
note: z.string().min(1).optional(),
})
.strict(); // Adding strict so that we can disallow passing in extra fields