Multiple ordered with array fails
Open
- Dominant language
- JavaScript
- Stars
- 21.2k
- Forks
- 1.5k
- Avg merge
- 4h 57m
- Merged PRs (30d)
- 14
Description
#### How can we help?
This value `['first item', 1, 2, 3, 'last item']` for the following schema fails but it should pass. The schema requires 'first item' followed by 1 or more numbers, ending with 'last item'.
```js
Joi.array()
.ordered(Joi.valid('first item'))
.items(Joi.number())
.ordered(Joi.valid('last item'))
```
Contributor guide
Assessment
This issue has not been assessed yet.