fix(swager): add zod object in generate ssh key

This commit is contained in:
Mauricio Siu
2024-07-30 00:27:34 -06:00
parent 5280c861e8
commit 425c493889
5 changed files with 16 additions and 5 deletions

View File

@@ -32,7 +32,9 @@ export const sshKeyUpdate = sshKeyCreate.pick({
description: true,
});
export const sshKeyType = z.enum(["rsa", "ed25519"]).optional();
export const sshKeyType = z.object({
type: z.enum(["rsa", "ed25519"]).optional(),
});
export const domain = z
.object({