svrjs-nextjs-website/lib/validations/validation.ts
2024-06-20 23:16:48 +05:30

8 lines
220 B
TypeScript

import { z } from "zod";
export const downloadSchema = z.object({
fileName: z.string().nonempty(),
version: z.string().nonempty(),
downloadLink: z.string().url().nonempty(),
fileSize: z.string().nonempty(),
});