From bbfec73b48cf07829751239d1da667bc30d177a7 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 9 Dec 2023 17:09:40 -0300 Subject: [PATCH] arreglar schema ckan api --- downloader/ckan_to_datajson.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloader/ckan_to_datajson.js b/downloader/ckan_to_datajson.js index 6b15f96..1e79f2c 100644 --- a/downloader/ckan_to_datajson.js +++ b/downloader/ckan_to_datajson.js @@ -58,7 +58,7 @@ const zCkanGroup = z.object({ const zCkanPackage = z.object({ license_title: z.string(), license_id: z.string(), - license_url: z.string(), + license_url: z.string().optional(), maintainer: z.string(), maintainer_email: z.string(), id: z.string(), @@ -99,7 +99,7 @@ const zCkanStatusShow = z.object({ .string() .describe("DescripciĆ³n del portal. A veces vacio."), site_title: z.string(), - error_emails_to: z.string(), + error_emails_to: z.string().nullable(), }), });