svrjs-nextjs-website/lib/validations/validation.ts

23 lines
602 B
TypeScript
Raw Normal View History

import { z } from 'zod';
2024-06-20 17:37:45 +02:00
export const downloadSchema = z.object({
2024-06-20 19:46:48 +02:00
fileName: z.string().nonempty(),
version: z.string().nonempty(),
downloadLink: z.string().url().nonempty(),
fileSize: z.string().nonempty(),
2024-06-20 17:37:45 +02:00
});
export const modsSchema = z.object({
fileName: z.string().nonempty(),
version: z.string().nonempty(),
downloadLink: z.string().url().nonempty(),
fileSize: z.string().nonempty(),
});
2024-06-22 05:31:03 +02:00
export const logsSchema = z.object({
fileName: z.string().nonempty(),
version: z.string().nonempty(),
downloadLink: z.string().url().nonempty(),
fileSize: z.string().nonempty(),
});