Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Last active March 2, 2026 19:00
Show Gist options
  • Select an option

  • Save codigoconjuan/de3fcb6611a7389a99a9048bd8576168 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/de3fcb6611a7389a99a9048bd8576168 to your computer and use it in GitHub Desktop.
Schema para Perfiles de Meeti
import z from "zod";
export const ProfileSchema = z.object({
name: z.string()
.min(3, {error: 'Tu nombre es Obligatorio'}),
bio: z.string()
.min(1, {error: 'Añade una descripción o biografía'}),
image: z.url({ protocol: /^https?$/, hostname: z.regexes.domain, error: 'La imagen es obligatoria' }),
})
export type ProfileInput = z.infer<typeof ProfileSchema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment