From eceb08287493e31ab90bfa8d7d7114d34add7297 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 4 Oct 2023 18:12:18 -0500 Subject: [PATCH] Fix kindSchema --- src/schemas/nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({