Zod Integration with Novu

- Contributors
- Details
You can now use Zod Schemas for defining your payload and step controls schemas. The Framework SDK will infer those zod
schemas and provide a run-time validation and autocompletion for usage
Here is an example of a Zod-based validation:
Common usecases
- Validate trigger payload contents to make sure that null or undefined data ends up in your notifications.
- Provide default values for non-required attributes
- Create custom validation logic based on backend logic
- Define UI step controls and expose UI elements from zod schemas
To learn more about Zod integration, read our documentation.