CRUD Validation Command
Thecrud-validation command generates validation schemas for a model in your zopio project. This helps ensure data integrity and validation across your application.
Usage
Options
Examples
Generate Zod validation schema for a User model
Generate Yup validation schema
Generate class-validator decorators
Generated Files
When you run thecrud-validation command, validation schemas will be generated based on the specified library:
Zod Schema Example
Yup Schema Example
Class Validator Example
Related Commands
crud- Generate basic CRUD operationscrud-schema- Generate JSON schema and TypeScript interfacecrud-unified- Generate a complete CRUD setup