You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/event-handler/http.md
+3-34Lines changed: 3 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,42 +169,11 @@ If you need to accept multiple HTTP methods in a single function, or support an
169
169
170
170
### Data validation
171
171
172
-
You can validate incoming requests and outgoing responses using any schema library that implements the [Standard Schema](https://standardschema.dev){target="_blank"} specification, such as Zod, Valibot, or ArkType.
173
-
174
-
The validation feature automatically validates request components (body, headers, path parameters, query parameters) before your handler executes, and optionally validates responses after your handler completes.
175
-
176
-
#### Basic validation
177
-
178
-
Use the `validation` option when defining routes to specify which components to validate:
Validation errors are automatically handled by the router:
199
-
200
-
-**Request validation failures** return HTTP 422 (Unprocessable Entity) with `RequestValidationError`
201
-
-**Response validation failures** return HTTP 500 (Internal Server Error) with `ResponseValidationError`
172
+
!!! note "Coming soon"
202
173
203
-
=== "validation_error_handling.ts"
174
+
We plan to add built-in support for request and response validation using [Standard Schema](https://standardschema.dev){target="_blank"} in a future release. For the time being, you can use any validation library of your choice in your route handlers or middleware.
Please [check this issue](https://github.com/aws-powertools/powertools-lambda-typescript/issues/4516) for more details and examples, and add 👍 if you would like us to prioritize it.
0 commit comments