Files
hydra/src/main/events/helpers/validators.ts
2024-06-22 20:15:07 +01:00

14 lines
298 B
TypeScript

import { z } from "zod";
export const downloadSourceSchema = z.object({
name: z.string().max(255),
downloads: z.array(
z.object({
title: z.string().max(255),
uris: z.array(z.string()),
uploadDate: z.string().max(255),
fileSize: z.string().max(255),
})
),
});