We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4536e75 + 27a7535 commit ad212e3Copy full SHA for ad212e3
lib/ourJoi.js
@@ -27,7 +27,7 @@ Joi.one = function () {
27
Joi.many = function () {
28
const resources = Array.prototype.slice.call(arguments)
29
resources.forEach(resource => {
30
- if (typeof resource !== 'string') throw new Error('Expected a string when defining a primary relation via .one()')
+ if (typeof resource !== 'string') throw new Error('Expected a string when defining a primary relation via .many()')
31
})
32
const obj = Joi.array().items(resources.map(ourJoi._joiBase))
33
obj._settings = {
0 commit comments