From 067276e367183851db3a67131393aad23e051d23 Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Thu, 5 Dec 2024 17:20:39 +0800 Subject: [PATCH] feat: require at least 1 id_url in profile --- identity/profile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identity/profile.ts b/identity/profile.ts index c61a9bf..07cf40d 100644 --- a/identity/profile.ts +++ b/identity/profile.ts @@ -3,7 +3,7 @@ import z from "zod"; export const blahProfileSchema = z.object({ typ: z.literal("profile"), preferred_chat_server_urls: z.array(z.string().url()), - id_urls: z.array(z.string().url()), + id_urls: z.array(z.string().url()).min(1), name: z.string(), bio: z.string().optional(), });