Validatron is a modular and extensible validation library for Spring Boot that goes beyond the default Bean Validation (javax.validation
) constraints. It provides unique field-level and class-level annotations tailored for real-world enterprise applications—like unique DB fields, Aadhaar validation, input sanitization, password strength checks, and more.
- ✅ Plug-and-play custom validators
- 🔒 Security-focused: includes XSS/SQL injection validation
- 📆 Rich date and time checks (weekend-only, working hours, etc.)
- 🆔 Country-specific ID validation (PAN, Aadhaar, GST)
- 🔁 Cross-field logic (
@FieldsMatch
,@ConditionalRequired
) - ⚙️ Simple annotation-driven usage
- 🧪 Fully testable with built-in test support
Coming soon as a Maven package. For now, clone and import as a module:
git clone https://github.com/pratham1singh/Validatron.git