import { z } from "zod";

export const formSchema = z.object({
  address: z
    .string()
    .length(42, "Address should be 42 symbols long")
    .nonempty("Address is required")
    .refine((val) => val.startsWith("0x"), {
      message: "Address must start with '0x'",
    }),
});

Homonyms

cyberia/research/events/client/src/features/place-form/model/formSchema.ts
cyberia/research/events/client/src/features/event-form/model/formSchema.ts
cyberia/research/events/client/src/features/localprovider-form/model/formSchema.ts
cyberia/research/events/client/src/features/socials-form/model/formSchema.ts

Graph