Skip to content

Commit 87c7c1b

Browse files
committed
removeed doc update
1 parent b6931d0 commit 87c7c1b

File tree

6 files changed

+5
-309
lines changed

6 files changed

+5
-309
lines changed

docs/features/event-handler/http.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -169,42 +169,11 @@ If you need to accept multiple HTTP methods in a single function, or support an
169169

170170
### Data validation
171171

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:
179-
180-
=== "validation_basic.ts"
181-
182-
```typescript hl_lines="17 20-22 26-31"
183-
--8<-- "examples/snippets/event-handler/rest/validation_basic.ts"
184-
```
185-
186-
#### Validating multiple components
187-
188-
You can validate multiple request components simultaneously:
189-
190-
=== "validation_query_headers.ts"
191-
192-
```typescript hl_lines="40-51"
193-
--8<-- "examples/snippets/event-handler/rest/validation_query_headers.ts"
194-
```
195-
196-
#### Error handling
197-
198-
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"
202173

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.
204175

205-
```typescript hl_lines="6-10"
206-
--8<-- "examples/snippets/event-handler/rest/validation_error_handling.ts"
207-
```
176+
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.
208177

209178
### Accessing request details
210179

examples/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"@types/aws-lambda": "^8.10.159",
33-
"@types/node": "24.10.1",
33+
"@types/node": "24.10.2",
3434
"aws-cdk-lib": "^2.228.0",
3535
"constructs": "^10.4.3",
3636
"source-map-support": "^0.5.21",
@@ -49,7 +49,7 @@
4949
"@aws-sdk/lib-dynamodb": "^3.939.0",
5050
"@middy/core": "^4.7.0",
5151
"@types/aws-lambda": "^8.10.159",
52-
"@types/node": "24.10.1",
52+
"@types/node": "24.10.2",
5353
"aws-cdk": "^2.1033.0",
5454
"constructs": "^10.4.3",
5555
"esbuild": "^0.27.1",

examples/snippets/event-handler/http/validation_README.md

Lines changed: 0 additions & 116 deletions
This file was deleted.

examples/snippets/event-handler/http/validation_basic.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

examples/snippets/event-handler/http/validation_error_handling.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/snippets/event-handler/http/validation_query_headers.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)