From an api rest I recover a data structure like this:
reasonForPayment: [
"reasonForPayment string",
"reasonForPayment string2"
]
With formik and yup I build the form, but I can't validate reasonForPayment consisting of 2 input fields.
I would need something like this:
Example
but the data to be returned must not be an array of objects but a simple array
Tips?
question from:
https://stackoverflow.com/questions/65846695/yup-validation-array 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…