0.2.4 • Published 7 months ago
@rattus-orm/plugin-zod-validate v0.2.4
Data validation with Zod for Rattus ORM
Features
- 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.
Installation
Use your favorite package manager. For example, yarn:
yarn add @rattus-orm/plugin-zod-validateDocumentation
For detailed docs please read documentation website.
Contributing
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests.