You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: replace deprecated .describe() with .meta() in docs (#322)
Updates all Zod schema examples in docs to use `.meta({ description: "..." })`
instead of `.describe()`, which is the recommended approach in Zod 4+.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
> **Note:** Refer to your schema library's documentation for details on defining schemas and using features like `.describe()` for field descriptions. TanStack AI will convert your schema to JSON Schema format automatically.
34
+
> **Note:** Refer to your schema library's documentation for details on defining schemas and using features like `.meta()` for field descriptions. TanStack AI will convert your schema to JSON Schema format automatically.
35
35
36
36
## Basic Usage
37
37
@@ -44,9 +44,9 @@ import { z } from "zod";
44
44
45
45
// Define your schema
46
46
const PersonSchema =z.object({
47
-
name: z.string().describe("The person's full name"),
48
-
age: z.number().describe("The person's age in years"),
0 commit comments