What were you searching in the docs?
We have an example how to extend a built-in schema for EventBridgeSchema which is a trivial case where there is no transformation needed, because the input is an object.
In cases when we haven a stringified object inside the payload i.e. SQS or API Gateway, we need to use .transform() and .pipe() functions from zod. A missing example was identified in #2844 .
Is this related to an existing documentation section?
No response
How can we improve?
Add an example how to extend a built in schema for APIGatgewayProxyEvent which takes a string and uses transform() and pipe() functions.
Got a suggestion in mind?
No response
Acknowledgment
What were you searching in the docs?
We have an example how to extend a built-in schema for
EventBridgeSchemawhich is a trivial case where there is no transformation needed, because the input is an object.In cases when we haven a stringified object inside the payload i.e. SQS or API Gateway, we need to use
.transform()and.pipe()functions from zod. A missing example was identified in #2844 .Is this related to an existing documentation section?
No response
How can we improve?
Add an example how to extend a built in schema for
APIGatgewayProxyEventwhich takes a string and usestransform()andpipe()functions.Got a suggestion in mind?
No response
Acknowledgment