I am trying to validate a form which has an array of custom objects on it but I can't get zod to see the array of objects.
Attached is my zod validation and my html inputs. I have tried passengers.0.firstname and passengers[0].firstname. With the first one it says it expected an array and got an object but with the second one it says it got undefined.
Has anyone managed to get this to work?