hapijs / hapijs/joi

Request for comments: changes to array items specifications

Open
#2,413 5 comments 0 reactions 0 assignees View on GitHub
breaking changes
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

## Disallow combining array items() and ordered()

I would like to no longer allow using both items and ordered rules on arrays. I don't see a reason to support such a complicated construction that is hard to reason about.

## Move required and forbidden items into separate API

Instead of using `required()` and `forbidden()` on items, these should be specified using a separate rule.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.