-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
featureNew functionality or improvementNew functionality or improvement
Milestone
Description
I know there are no plans to support having joi.array() apply different schemas to items at different indexes, but it would be very useful to be able to circumvent that by simply treating arrays as objects (like JS generally does already).
Example:
joi.object().type(Array).validate([])
Expected outcome: validation passes
Actual outcome: validation fails with "must be an object".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew functionality or improvementNew functionality or improvement