« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/validators.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/validators.js')
-rw-r--r--src/data/validators.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index 31c7025a..dfb20ff0 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -713,6 +713,14 @@ export const isTrackSection = validateProperties({
 
 export const isTrackSectionList = validateArrayItems(isTrackSection);
 
+export const isSeries = validateProperties({
+  name: isName,
+  description: optional(isContentString),
+  albums: optional(validateReferenceList('album')),
+});
+
+export const isSeriesList = validateArrayItems(isSeries);
+
 export function isDimensions(dimensions) {
   isArray(dimensions);