Introduction
@rattus-orm/plugin-zod-validate
is a plugin for Rattus ORM, designed to validate your data in models using the Zod library.
Key features:
- Works with any Data Provider;
- Automatically creates Zod types for basic field types: string, number, boolean;
- Strict mode - throws an error on unsuccessful validation (default is a warning in the console);
- Option to configure strict mode for specific models;
- Ability to define a custom validator for fields;
- Supports decorators for fields.