« get me outta code hell

data-checks: reportContentTextErrors: handle additional files - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-04 11:35:56 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-04 11:35:56 -0300
commit8d655f592df09a15537fd2275cd9c51b5af78d01 (patch)
treebf68203be1c0f03d1f8ea3bcb4d3b161347032d1 /src/data
parent7e8edc2e0bdee10127d8cb780ecfaebb6fa34240 (diff)
data-checks: reportContentTextErrors: handle additional files
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js8
1 files changed, 8 insertions, 0 deletions
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', {