Skip to content

Commit 57361d8

Browse files
the-ultclaude
andcommitted
docs(zod): clarify Zod 4 is the baseline, not an unconditional default
Address review feedback: "generates Zod 4 by default" read as "always Zod 4" until the following paragraph clarified `'auto'`. Reword to frame Zod 4 as the baseline and state the emitted syntax follows whichever `zod` major the project resolves. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 09d7f1b commit 57361d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/docs/guides/zod.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const createPetsBody = zod.object({
4040

4141
## Zod version
4242

43-
Orval generates **Zod 4** output by default (`z.strictObject`, `z.looseObject`, `z.iso.datetime()`, `.meta()`, …). Projects still on Zod 3 are fully supported.
43+
Orval uses **Zod 4** as its output baseline (`z.strictObject`, `z.looseObject`, `z.iso.datetime()`, `.meta()`, …), while projects still on Zod 3 are fully supported. The emitted syntax follows whichever `zod` major your project resolves.
4444

4545
With the default (`'auto'`), Orval infers the target from the `zod` version resolved in your project's `package.json`. When no `zod` package can be detected — for example in a fresh or partially-installed workspace — it falls back to **Zod 4**.
4646

0 commit comments

Comments
 (0)