diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-03 20:31:13 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-03 20:35:09 -0400 |
commit | cf70ea90286a6de7c9d4dad2aa33a0b8bec4a9ae (patch) | |
tree | ea31f9fc3bb0be72eab03715b889ffa80b6c7a1f /src/content | |
parent | d83f4834af5ac18759c2e2c3ad4bb2c7e4900bee (diff) |
validators: oneOf -> anyOf
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateCoverCarousel.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/generateCoverGrid.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/generateSecondaryNav.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/image.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/linkThing.js | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/content/dependencies/generateCoverCarousel.js b/src/content/dependencies/generateCoverCarousel.js index 49cb4300..69220da6 100644 --- a/src/content/dependencies/generateCoverCarousel.js +++ b/src/content/dependencies/generateCoverCarousel.js @@ -15,7 +15,7 @@ export default { images: {validate: v => v.strictArrayOf(v.isHTML)}, links: {validate: v => v.strictArrayOf(v.isHTML)}, - lazy: {validate: v => v.oneOf(v.isWholeNumber, v.isBoolean)}, + lazy: {validate: v => v.anyOf(v.isWholeNumber, v.isBoolean)}, actionLinks: {validate: v => v.sparseArrayOf(v.isHTML)}, }, diff --git a/src/content/dependencies/generateCoverGrid.js b/src/content/dependencies/generateCoverGrid.js index e2212b70..0433aaf1 100644 --- a/src/content/dependencies/generateCoverGrid.js +++ b/src/content/dependencies/generateCoverGrid.js @@ -16,7 +16,7 @@ export default { names: {validate: v => v.strictArrayOf(v.isHTML)}, info: {validate: v => v.strictArrayOf(v.isHTML)}, - lazy: {validate: v => v.oneOf(v.isWholeNumber, v.isBoolean)}, + lazy: {validate: v => v.anyOf(v.isWholeNumber, v.isBoolean)}, actionLinks: {validate: v => v.sparseArrayOf(v.isHTML)}, }, diff --git a/src/content/dependencies/generateSecondaryNav.js b/src/content/dependencies/generateSecondaryNav.js index 1bc0616e..e9aef66e 100644 --- a/src/content/dependencies/generateSecondaryNav.js +++ b/src/content/dependencies/generateSecondaryNav.js @@ -8,7 +8,7 @@ export default { }, class: { - validate: v => v.oneOf(v.isString, v.sparseArrayOf(v.isString)), + validate: v => v.anyOf(v.isString, v.sparseArrayOf(v.isString)), }, }, diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index f93ce97e..ab6bccd0 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -46,7 +46,7 @@ export default { thumb: {type: 'string'}, link: { - validate: v => v.oneOf(v.isBoolean, v.isString), + validate: v => v.anyOf(v.isBoolean, v.isString), default: false, }, diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js index c5998c7e..39710017 100644 --- a/src/content/dependencies/linkThing.js +++ b/src/content/dependencies/linkThing.js @@ -36,12 +36,12 @@ export default { }, tooltip: { - validate: v => v.oneOf(v.isBoolean, v.isHTML), + validate: v => v.anyOf(v.isBoolean, v.isHTML), default: false, }, color: { - validate: v => v.oneOf(v.isBoolean, v.isColor), + validate: v => v.anyOf(v.isBoolean, v.isColor), default: true, }, |