An open API service indexing awesome lists of open source software.

https://github.com/pratham1singh/validatron

Validatron is a Spring Boot validation library that provides a rich set of annotations for validating input fields with greater control and flexibility than standard JSR-303 constraints. It includes unique validators such as @StrongPassword, @UniqueField, @Trimmed, and country-specific validators like @ValidAadhaar, @ValidPAN, and more.
https://github.com/pratham1singh/validatron

java maven-plugin spring springboot springboot-annotation springboot-validation validation validatron

Last synced: about 1 month ago
JSON representation

Validatron is a Spring Boot validation library that provides a rich set of annotations for validating input fields with greater control and flexibility than standard JSR-303 constraints. It includes unique validators such as @StrongPassword, @UniqueField, @Trimmed, and country-specific validators like @ValidAadhaar, @ValidPAN, and more.

Awesome Lists containing this project

README

          

# โœ… Validatron - Advanced Validation Toolkit for Spring Boot

[![Java](https://img.shields.io/badge/Java-17+-blue.svg)](https://www.oracle.com/java/)
[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.x-brightgreen.svg)](https://spring.io/projects/spring-boot)
[![License](https://img.shields.io/github/license/yourusername/validatron.svg)](LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](CONTRIBUTING.md)

---

**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.

---

## ๐Ÿš€ Features

- โœ… 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

---

## ๐Ÿ“ฆ Installation

> _Coming soon as a Maven package._ For now, clone and import as a module:

```bash
git clone https://github.com/pratham1singh/Validatron.git