@nuxt/docs-nightly 4.6.0-29776095.3d108708 → 4.6.0-29776185.65fb0aaa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,7 +197,7 @@ export default defineEventHandler((event) => {
|
|
|
197
197
|
```
|
|
198
198
|
|
|
199
199
|
::tip{to="https://h3.dev/examples/validate-data#validate-params"}
|
|
200
|
-
Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod for runtime and type safety.
|
|
200
|
+
Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
201
201
|
::
|
|
202
202
|
|
|
203
203
|
You can now universally call this API on `/api/hello/nuxt` and get `Hello, nuxt!`.
|
|
@@ -273,7 +273,7 @@ export default defineEventHandler(async (event) => {
|
|
|
273
273
|
```
|
|
274
274
|
|
|
275
275
|
::tip{to="https://unjs.io/blog/2023-08-15-h3-towards-the-edge-of-the-web/#runtime-type-safe-request-utils"}
|
|
276
|
-
Alternatively, use `readValidatedBody` with a schema validator such as Zod for runtime and type safety.
|
|
276
|
+
Alternatively, use `readValidatedBody` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
277
277
|
::
|
|
278
278
|
|
|
279
279
|
You can now universally call this API using:
|
|
@@ -306,7 +306,7 @@ export default defineEventHandler((event) => {
|
|
|
306
306
|
```
|
|
307
307
|
|
|
308
308
|
::tip{to="https://unjs.io/blog/2023-08-15-h3-towards-the-edge-of-the-web#runtime-type-safe-request-utils"}
|
|
309
|
-
Alternatively, use `getValidatedQuery` with a schema validator such as Zod for runtime and type safety.
|
|
309
|
+
Alternatively, use `getValidatedQuery` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
310
310
|
::
|
|
311
311
|
|
|
312
312
|
### Error Handling
|