« get me outta code hell

content, data, validators: stub url entries - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties/urls.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-05-01 08:06:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-05-01 08:06:52 -0300
commit92d82211fdf3d653b1a5a4d2cfdad5c684e2367d (patch)
tree0822b2122963232988cbac2bd6e4689bb5cd4c32 /src/data/composite/wiki-properties/urls.js
parentdba7bea5c4ef2499c3cc0aee2a3154f6a31ea5b2 (diff)
content, data, validators: stub url entries
Diffstat (limited to 'src/data/composite/wiki-properties/urls.js')
-rw-r--r--src/data/composite/wiki-properties/urls.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/data/composite/wiki-properties/urls.js b/src/data/composite/wiki-properties/urls.js
index 04ccf689..5525b462 100644
--- a/src/data/composite/wiki-properties/urls.js
+++ b/src/data/composite/wiki-properties/urls.js
@@ -1,14 +1,13 @@
 // A list of URLs! This will always be present on the data object, even if set
 // to an empty array or null.
 
-import {isCuratedURL, validateArrayItems} from '#validators';
-
-// TODO: Not templateCompositeFrom.
+import {isCuratedURLList} from '#validators';
+import {templateCompositeFrom} from '#composite';
 
 export default function() {
   return {
     flags: {update: true, expose: true},
-    update: {validate: validateArrayItems(isCuratedURL)},
+    update: {validate: isCuratedURLList},
     expose: {transform: value => value ?? []},
   };
 }