DSL syntax
Define validation rules using compact DSL strings or objects, covering common fields, constraints and combination scenarios.
DSL syntax · Chained API · Multi-format export · Full TypeScript support
Define validation rules using compact DSL strings or objects, covering common fields, constraints and combination scenarios.
Based on AJV 8 packaging, supports synchronous, asynchronous and batch validation, and provides cache management capabilities.
The same schema can be exported to MongoDB, MySQL, PostgreSQL and Markdown documents.
Built-in multi-language error messages and dynamic locale switching, suitable for sharing validation rules between the server and front-end.
Add custom DSL types, formats and packaged plugins.
Provides complete type declarations for direct integration in modern Node.js and TypeScript projects.