array.of() support?
Closed this issue · 1 comments
kecoco16 commented
Hi, First of all thank you for creating this library,
I have a question, I would like to know if the library have support for array.of() and if it has how would the json scheme be to have this output?
people: yup
.array()
.of(
yup.object().shape({
name: yup.string().required(),
phoneNumber: yup.string().required()
})
)
.required()
kecoco16 commented
I found the answer in the tests https://github.com/ritchieanesco/json-schema-yup-transform/blob/master/test/yup/array.items.test.ts