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

https://github.com/seart-group/jakarta-validation-utils

Utilities for the Jakarta Bean Validation API
https://github.com/seart-group/jakarta-validation-utils

bean-validation constraint-validation dependency email-validator hash-validator jakarta-bean-validation jakarta-ee jakarta-validation java-8 library maven maven-dependency maven-library maven-repository mit-license password-validator validation validator

Last synced: 3 months ago
JSON representation

Utilities for the Jakarta Bean Validation API

Awesome Lists containing this project

README

        

# Jakarta Bean Validation Utilities · [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/seart-group/jakarta-validation-utils/package.yml)](https://github.com/seart-group/jakarta-validation-utils/actions/workflows/package.yml) [![Maven Central](https://img.shields.io/maven-central/v/ch.usi.si.seart/jakarta-validation-utils)](https://central.sonatype.com/artifact/ch.usi.si.seart/jakarta-validation-utils) [![javadoc](https://javadoc.io/badge2/ch.usi.si.seart/jakarta-validation-utils/javadoc.svg)](https://javadoc.io/doc/ch.usi.si.seart/jakarta-validation-utils) [![MIT license](https://img.shields.io/github/license/seart-group/jakarta-validation-utils)](https://github.com/seart-group/jakarta-validation-utils/blob/master/LICENSE)

This library provides several custom validation annotations:

- ASCII-only strings
- Alphanumeric strings
- Null or non-blank strings
- OWASP-compliant emails
- Custom password requirements
- BCrypt and SHA hash values
- JSON Web Tokens (JWTs)
- GitHub Personal Access Tokens (PATs)
- Semantic version strings

## Requirements

Requires a minimum of Java 8.

## Using the current version

To use the most recent version, include the library with the latest version of the Jakarta Validation API, for example:

```xml


jakarta.validation
jakarta.validation-api
3.1.0


ch.usi.si.seart
jakarta-validation-utils
0.5.0

```

## Using the legacy version

If you are still using the previous major release of Jakarta Validation API (for instance, you are using Spring Boot 2),
then you will need to include the alternative dependency:

```xml


jakarta.validation
jakarta.validation-api
2.0.2


ch.usi.si.seart
jakarta-validation-utils-legacy
0.5.0

```

## Migrating from legacy

Aside from upgrading your Jakarta Validation API (or its dependents), you will only need to change the `artifactId`
from `jakarta-validation-utils-legacy` to `jakarta-validation-utils`.
No other code changes required.