We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e027d commit 7bde6b7Copy full SHA for 7bde6b7
1 file changed
shared/schemas/social.ts
@@ -12,9 +12,9 @@ export type PackageLikeBody = v.InferOutput<typeof PackageLikeBodySchema>
12
13
// TODO: add 'avatar'
14
export const ProfileEditBodySchema = v.object({
15
- displayName: v.string(),
16
- website: v.optional(v.string()),
17
- description: v.optional(v.string()),
+ displayName: v.pipe(v.string(), v.maxLength(640)),
+ website: v.optional(v.pipe(v.string(), v.url())),
+ description: v.optional(v.pipe(v.string(), v.maxLength(2560))),
18
})
19
20
export type ProfileEditBody = v.InferOutput<typeof ProfileEditBodySchema>
0 commit comments