Closed francisli closed 4 months ago
The middle name is optional, but passing in an empty string fails the schema validation check (i.e. it's less than 2 characters long).
My guess: in the API route, if the middle name is an empty string, it needs to be replaced with null to pass validation.
The middle name is optional, but passing in an empty string fails the schema validation check (i.e. it's less than 2 characters long).
My guess: in the API route, if the middle name is an empty string, it needs to be replaced with null to pass validation.