diff --git a/lib/types/src/schema/vault.ts b/lib/types/src/schema/vault.ts index c5d976e59..7d4f3fecf 100644 --- a/lib/types/src/schema/vault.ts +++ b/lib/types/src/schema/vault.ts @@ -1,9 +1,15 @@ import { z } from 'zod' -export const VaultSchema = z.object({ - team: z.string(), - app: z.string() -}) +// In theory, these fields should be required as Vault won't work without them, +// but not every app that pulls in the Vault plugin actually needs to use +// Vault, e.g., an app that uses the `nodemon` plugin with the `useVault` +// option set to false. +export const VaultSchema = z + .object({ + team: z.string(), + app: z.string() + }) + .partial() export type VaultOptions = z.infer export const Schema = VaultSchema