Skip to content

Commit afa1de2

Browse files
committed
docs: fix Zod Mini shape API reference
1 parent 65be060 commit afa1de2

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)