How can I validate array of range 0-100, I want the first number to be zero or more and the second one to be anything above zero but less than 100, however yup seems not to treat separate schemas separately but just enhances the allowed ranges
ageGroup: yup
.array()
.of(
yup
.number()
.integer()
.min(0)
.max(100)
.required(),
yup
.number()
.integer()
.moreThan(0)
.max(100)
.required()
)
.length(2)
.required(),
So this declaration actually allows entering zero in both indexes, any ideas please? Thanks