From 1f88c043dc7614a6c6f57fd4b154f6e7f873ea49 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Thu, 7 Oct 2021 23:07:09 +1100 Subject: [PATCH] make author email optional --- api/registry-validation.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/registry-validation.mjs b/api/registry-validation.mjs index afe7819..61e07b9 100644 --- a/api/registry-validation.mjs +++ b/api/registry-validation.mjs @@ -88,7 +88,7 @@ const check = async ( if (!passed) return false; return mod.authors.map((author) => [ check(mod, 'authors.author.name', author.name, 'string'), - check(mod, 'authors.author.email', author.email, 'email'), + check(mod, 'authors.author.email', author.email, 'email', { optional: true }), check(mod, 'authors.author.homepage', author.homepage, 'url'), check(mod, 'authors.author.avatar', author.avatar, 'url'), ]);