From 224211c2e5d1fcfa0de0c1155f747b66dd597517 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 2 Apr 2024 17:14:36 -0300 Subject: validators: isAdditionalFile: make files optional --- src/data/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/data/validators.js b/src/data/validators.js index d89c23bb..46dd292d 100644 --- a/src/data/validators.js +++ b/src/data/validators.js @@ -623,7 +623,7 @@ export const isContributionList = validateArrayItems(isContribution); export const isAdditionalFile = validateProperties({ title: isName, description: optional(isContentString), - files: validateArrayItems(isString), + files: optional(validateArrayItems(isString)), }); export const isAdditionalFileList = validateArrayItems(isAdditionalFile); -- cgit 1.3.0-6-gf8a5