A helper function to parse a JSON string and validate it against a schema.
Use it for built-in schemas like AlbSchema, ApiGatewaySchema, etc. that have some fields that are JSON stringified
and extend them with your custom schema.
For example, if you have an event with a JSON stringified body similar to the following:
A helper function to parse a JSON string and validate it against a schema.
Use it for built-in schemas like
AlbSchema
,ApiGatewaySchema
, etc. that have some fields that are JSON stringified and extend them with your custom schema.For example, if you have an event with a JSON stringified body similar to the following:
You can extend any built-in schema with your custom schema using the
JSONStringified
helper function.Example