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
See the [documentation](https://docs.aws.amazon.com/powertools/typescript/latest/features/event-handler/appsync-events) for more details on how to use the AppSync event handler.
299
299
300
-
## REST API - Validation Middleware
301
-
302
-
The validation middleware provides first-class support for request and response validation using schema libraries like Zod, Valibot, or ArkType through the Standard Schema specification.
303
-
304
-
### Installation
305
-
306
-
Install the validation middleware peer dependency:
component: error.component, // 'body', 'headers', 'path', or 'query'
384
-
},
385
-
};
386
-
});
387
-
```
388
-
389
-
### Development Mode
390
-
391
-
Set `POWERTOOLS_DEV=true` to include detailed validation errors in responses for debugging.
392
-
393
-
### Supported Schema Libraries
394
-
395
-
Any library implementing the [Standard Schema](https://github.com/standard-schema/standard-schema) specification:
396
-
397
-
***Zod** (v3.x)
398
-
***Valibot** (v1.x)
399
-
***ArkType** (v2.x)
400
-
401
-
See the [examples directory](../../examples/snippets/event-handler/rest/) for complete usage examples.
402
-
403
300
## Contribute
404
301
405
302
If you are interested in contributing to this project, please refer to our [Contributing Guidelines](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CONTRIBUTING.md).
0 commit comments