Example how to use zod with CDK serverless v2

The AWS CDK Serverless Toolsuite from Thorsten Hoeger helps, among others, to deploy an API Gateway...

DEV Community
@KoningsJohannes that looks cool. Is there a way to generate the zod validation from openApi? It could then be automatically integrated into CDK serverless. Thanks for using the tool
@hoegertn nothing found for openApi in this list: https://github.com/colinhacks/zod#x-to-zod
Maybe it could be achieved by generating the zod schema from the generated types: https://github.com/fabien0102/ts-to-zod
GitHub - colinhacks/zod: TypeScript-first schema validation with static type inference

TypeScript-first schema validation with static type inference - colinhacks/zod

GitHub