Zod .describe() causing issues with schema validation
I'm seeing the following when running
npx convex dev
The code in that file looks like this:
This is put into a table like so:
where
When i remove the describe lines I don't see the same error so I'm wondering if zodToConvex
is doing something weird3 Replies
For context, i need those descriptions to reuse these data types in tools to agents so they have more context
This issue might be related to #
zodToConvex
helper giving unintelligible errors
due to circular dep issue, was just really not obvious - sharing in case anyone gets weird errors like this - was not a convex issuethanks for the follow up
it's really a bummer how often circular issues cause some of the most confusing errors
yep, and there was nothing structurally wrong in my types graph, just had to reorganize files - kinda wish this could be done behind the scenes, but ofc this is beyond the scope of convex (for now haha)