-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing code
Milestone
Description
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:
xand.xare now properties of the array item being validated..xis a property of full array being validated...xis a property of the object containing the array
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing code