From f5c40943eb4ed62978fe02fcc53e64d22a5528d2 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 8 Dec 2023 00:46:17 -0300 Subject: [PATCH] schema: no se garantizan estas cosas --- frontend/src/lib/schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/schema.ts b/frontend/src/lib/schema.ts index 638b884..e8f693d 100644 --- a/frontend/src/lib/schema.ts +++ b/frontend/src/lib/schema.ts @@ -6,7 +6,7 @@ export const zPublisher = z.object({ }); export const zDistribution = z.object({ identifier: z.string(), - downloadURL: z.string(), + downloadURL: z.string().optional(), fileName: z.string().optional(), format: z.string().optional(), title: z.string(), @@ -28,7 +28,7 @@ export const zData = z.object({ }); export const zError = z.object({ - url: z.string(), + url: z.string().optional(), datasetIdentifier: z.string(), distributionIdentifier: z.string(), kind: z.enum(["generic_error", "http_error", "infinite_redirect"]),