You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using references in schemas used to validate array items:
array().items()
array().ordered()
The references no longer point to the object containing the array itself. Instead, they point to the individual array item being validated. This means that a previous reference of Joi.ref('peer') must now be expressed as Joi.ref('...peer'). This is because:
x and .x are now properties of the array item being validated
..x is a property of full array being validated
...x is a property of the object containing the array
The text was updated successfully, but these errors were encountered:
When using references in schemas used to validate array items:
The references no longer point to the object containing the array itself. Instead, they point to the individual array item being validated. This means that a previous reference of
Joi.ref('peer')
must now be expressed asJoi.ref('...peer')
. This is because:x
and.x
are now properties of the array item being validated..x
is a property of full array being validated...x
is a property of the object containing the arrayThe text was updated successfully, but these errors were encountered: