Docs: add parser example to extend built-in schema with JSON parse #2891
Labels
completed
This item is complete and has been merged/shipped
documentation
Improvements or additions to documentation
parser
This item relates to the Parser Utility
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 usestransform()
andpipe()
functions.Got a suggestion in mind?
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: