From 8d655f592df09a15537fd2275cd9c51b5af78d01 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 4 Apr 2024 11:35:56 -0300 Subject: data-checks: reportContentTextErrors: handle additional files --- src/data/checks.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/data/checks.js b/src/data/checks.js index 0ea384ac..1300cbeb 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -469,6 +469,10 @@ export class ContentNodeError extends Error { export function reportContentTextErrors(wikiData, { bindFind, }) { + const additionalFileShape = { + description: 'description', + }; + const commentaryShape = { body: 'commentary body', artistDisplayText: 'commentary artist display text', @@ -477,6 +481,7 @@ export function reportContentTextErrors(wikiData, { const contentTextSpec = [ ['albumData', { + additionalFiles: additionalFileShape, commentary: commentaryShape, }], @@ -509,8 +514,11 @@ export function reportContentTextErrors(wikiData, { }], ['trackData', { + additionalFiles: additionalFileShape, commentary: commentaryShape, lyrics: '_content', + midiProjectFiles: additionalFileShape, + sheetMusicFiles: additionalFileShape, }], ['wikiInfo', { -- cgit 1.3.0-6-gf8a5