I am trying to migrate from o.x to V1 using mogration guide. We have some input object for some tool, having atleast 1 field marked as optional. While calling the same, agent sometimes does not send them. And mastra is throwing validation error "expected string, received undefined". This was working fine ealier. I see something similar is fixed in with GH issue https://github.com/mastra-ai/mastra/issues/11457
I tried to change .optional to .nullable and .default(null) but that is also not working.
Versions being used in my project - 1. mastra/core - 1.0.0.-beta.19 2. mastra - 1.0.0.-beta.12 3. Zod - ^4.1.12
This issue was created from Discord post 1454662146003832993: Hey guys! Running into what looks like a bug with tool input validation when using nested objects with .partial(). The issue: When I cr...