diff options
Diffstat (limited to 'src/data/validators.js')
-rw-r--r-- | src/data/validators.js | 8 |
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); |