MANUAL

Library with JavaBean validator annotations.

DESCRIPTION

This library provides a set of ready-to-use JavaBean validator annotations. These annotations can be used to validate the fields of a JavaBean. Typically, this is used in the configuration classes and DTOs (Data Transfer Objects) of DANS microservices.

INSTALLATION

To use this library in a Maven-based project:

  1. Include in your pom.xml a declaration for the DANS maven repository:

    <repositories>
        <!-- possibly other repository declarations here ... -->
        <repository>
            <id>DANS</id>
            <releases>
                <enabled>true</enabled>
            </releases>
            <url>https://maven.dans.knaw.nl/releases/</url>
        </repository>
    </repositories>
    
  2. Include a dependency on this library.

    <dependency>
        <groupId>nl.knaw.dans</groupId>
        <artifactId>dans-validation-lib</artifactId>
        <version>{version}</version> <!-- <=== FILL LIBRARY VERSION TO USE HERE -->
    </dependency>