mirror of
https://github.com/Blah-IM/typescript-core.git
synced 2025-04-30 16:21:10 +00:00
feat: require at least 1 id_url in profile
This commit is contained in:
parent
2eb559da7f
commit
067276e367
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue