diff --git a/src/schemas/nostr.ts b/src/schemas/nostr.ts index 41c3290c3..1dcd0c466 100644 --- a/src/schemas/nostr.ts +++ b/src/schemas/nostr.ts @@ -4,7 +4,7 @@ import { z } from 'zod'; /** Schema to validate Nostr hex IDs such as event IDs and pubkeys. */ const nostrIdSchema = z.string().regex(/^[0-9a-f]{64}$/); /** Nostr kinds are positive integers. */ -const kindSchema = z.number().int().positive(); +const kindSchema = z.number().int().nonnegative(); /** Nostr event template schema. */ const eventTemplateSchema = z.object({