Data validation with Zod for Rattus ORM
- Automatic Zod schema for basic types (number, string, boolean);
- Strict mode - throws error if data validation failed, or non-strict - just a warning in the console;
- Configurable severity for each model;
- Decorators support.
Use your favorite package manager. For example, yarn:
yarn add @rattus-orm/plugin-zod-validate
For detailed docs please read documentation website.
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests.