« 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.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index a17a98cc..84e08cb8 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -724,6 +724,13 @@ export const isSeries = validateProperties({
 
 export const isSeriesList = validateArrayItems(isSeries);
 
+export const isWallpaperPart = validateProperties({
+  asset: optional(isString),
+  style: optional(isString),
+});
+
+export const isWallpaperPartList = validateArrayItems(isWallpaperPart);
+
 export function isDimensions(dimensions) {
   isArray(dimensions);