Skip to content

Commit 4389c5d

Browse files
authored
Merge pull request #2359 from hey-api/docs/zod-mini-shape
docs: fix Zod Mini shape API reference
2 parents 65be060 + afa1de2 commit 4389c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/openapi-ts/plugins/zod/mini.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const zData = z.object({
108108
:::
109109

110110
::: tip
111-
If you need to access individual fields, you can do so using the [`.shape`](https://zod.dev/api?id=shape) API. For example, we can get the request body schema with `zData.shape.body`.
111+
If you need to access individual fields, you can do so using the [`.def.shape`](https://zod.dev/api?id=shape) API. For example, we can get the request body schema with `zData.def.shape.body`.
112112
:::
113113

114114
You can customize the naming and casing pattern for `requests` schemas using the `.name` and `.case` options.

0 commit comments

Comments
 (0)