feat: require at least 1 id_url in profile

This commit is contained in:
Shibo Lyu 2024-12-05 17:20:39 +08:00
parent 2eb559da7f
commit 067276e367

View file

@ -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(),
});