@nuxt/docs-nightly 5.0.0-29774482.33d37e65 → 5.0.0-29774731.92fd687d
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.
|
@@ -201,7 +201,7 @@ export default defineEventHandler((event) => {
|
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
::tip{to="https://h3.dev/examples/validate-data#validate-params"}
|
|
204
|
-
Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod for runtime and type safety.
|
|
204
|
+
Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
205
205
|
::
|
|
206
206
|
|
|
207
207
|
You can now universally call this API on `/api/hello/nuxt` and get `Hello, nuxt!`.
|
|
@@ -277,7 +277,7 @@ export default defineEventHandler(async (event) => {
|
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
::tip{to="https://unjs.io/blog/2023-08-15-h3-towards-the-edge-of-the-web/#runtime-type-safe-request-utils"}
|
|
280
|
-
Alternatively, use `readValidatedBody` with a schema validator such as Zod for runtime and type safety.
|
|
280
|
+
Alternatively, use `readValidatedBody` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
281
281
|
::
|
|
282
282
|
|
|
283
283
|
You can now universally call this API using:
|
|
@@ -310,7 +310,7 @@ export default defineEventHandler((event) => {
|
|
|
310
310
|
```
|
|
311
311
|
|
|
312
312
|
::tip{to="https://unjs.io/blog/2023-08-15-h3-towards-the-edge-of-the-web#runtime-type-safe-request-utils"}
|
|
313
|
-
Alternatively, use `getValidatedQuery` with a schema validator such as Zod for runtime and type safety.
|
|
313
|
+
Alternatively, use `getValidatedQuery` with a schema validator such as Zod or Valibot for runtime and type safety.
|
|
314
314
|
::
|
|
315
315
|
|
|
316
316
|
### Error Handling
|