@rattus-orm/plugin-zod-validate
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Rattus ORM

Rattus ORM – Plugin Zod Validate

Data validation with Zod for Rattus ORM

Features

  1. Automatic Zod schema for basic types (number, string, boolean);
  2. Strict mode - throws error if data validation failed, or non-strict - just a warning in the console;
  3. Configurable severity for each model;
  4. Decorators support.

Installation

Use your favorite package manager. For example, yarn:

yarn add @rattus-orm/plugin-zod-validate

Documentation

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.

Package Sidebar

Install

npm i @rattus-orm/plugin-zod-validate

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • lyohaplotinka