chore: update zod and react-hook-form integration to use standard-schema resolver; update dependencies in pnpm-lock.yaml

This commit is contained in:
Mauricio Siu
2026-02-23 11:10:28 -06:00
parent 03969b8f45
commit fca10c135a
146 changed files with 552 additions and 489 deletions
+4 -1
View File
@@ -133,6 +133,9 @@ const createSchema = createInsertSchema(server, {
serverId: z.string().min(1),
name: z.string().min(1),
description: z.string().optional(),
// Override pgEnums so Zod 4 infers only string literals, not numeric enum indices
serverType: z.enum(["deploy", "build"]).optional(),
serverStatus: z.enum(["active", "inactive"]).optional(),
});
export const apiCreateServer = createSchema
@@ -168,10 +171,10 @@ export const apiUpdateServer = createSchema
port: true,
username: true,
sshKeyId: true,
serverType: true,
})
.required()
.extend({
serverType: z.enum(["deploy", "build"]),
command: z.string().optional(),
});