/parameter-validation

A common parameter validation framework, makes validation easier.

Primary LanguageJavaApache License 2.0Apache-2.0

parameter-validation

Build Status Coverage Status Maven Central License

A common parameter validation tool, make validation easier. Parameter verification is spread throughout our daily development. It is often necessary to write code for various parameter verifications. The code for these parameter verifications is basically repeated. As the version is iterated, the bad taste of the code begins to appear, violating the DRY principle. Therefore, we encapsulate the parameter check according to these pain points, and use it out of the box to perform basic parameter verification and custom verification rules.

To avoid duplication and to be as simple as possible, the JSR 303 - Bean Validation specification provides the ability to support validation. Here we choose Hibernate Validator, which is probably the most well-known JSR implementation.