Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Releases: britter/bean-validators

Parameters as target

21 Jun 10:59
0.8.0
2a46064
Compare
Choose a tag to compare

This release only includes a single change: all annotation can now also be applied to method and constructor parameters:

public class Book {
    private String isbn
	
    public Book(@ISBN String isbn) {
        this.isbn = isbn;
    }
} 

In order for this to work you need a framework that takes care of injecting the required validation code for you.

Thanks to @mehranroodsaz for raising this. See #26, #27.

Strong checksums

24 May 18:09
0.7.1
8284858
Compare
Choose a tag to compare

The only change in this release is that now sha256 and sha512 checksums are published to Maven Central alongside the insecure md5 and sha1 checksums.

Gradle Build

18 Dec 12:15
0.7.0
061eeac
Compare
Choose a tag to compare

Changes

  • Project is now build with Gradle, see #8
  • Test fixtures are now published as a separate artifact with GAV com.github.britter:bean-validators:0.7.0:test-fixtures. Please refer to the documentation for more information on how to use test fixtures.

bean-validators v0.6.3

05 Jul 11:43
Compare
Choose a tag to compare
Pre-release

Changes:

bean-validators v0.6.2

05 Mar 15:27
Compare
Choose a tag to compare
Pre-release

Changes

  • Updated dependencies org.apache.commons:commons-lang3 from 3.4 to 3.5 and commons-validator:commons-validator from 1.5.0 to 1.6. Thanks to @CodingFabian. See #5.
  • Fixed some typos in JavaDocs

bean-validator v0.6.1

02 Aug 14:01
Compare
Choose a tag to compare
bean-validator v0.6.1 Pre-release
Pre-release

Changes

  • Made all method parameters final where possible
  • Added package-info.java files to all packages
  • Added JavaDoc to all constraint annotations and validators in the file package

bean-validator v0.6.0

01 Aug 15:33
Compare
Choose a tag to compare
bean-validator v0.6.0 Pre-release
Pre-release

New Features

  • All annotations from the file package can now also be applied to Strings. The validators will the create a new File instance using the new File(String) constructor and use that instance for validation.

bean-validator v0.5.1

30 Jul 20:52
Compare
Choose a tag to compare
bean-validator v0.5.1 Pre-release
Pre-release

This release only cleans up dependencies which have been defined in the wrong scope.

Changes

  • com.google.guava:guava:18.0 moved from compile scope to test scope
  • org.hamcrest:hamcrest-all:1.3 moved from compile scope to test scope

bean-validator v0.5.0

30 Jul 20:19
Compare
Choose a tag to compare
bean-validator v0.5.0 Pre-release
Pre-release

Starting with this release bean-validators uses semantic versioning.

New Features

The file package adds a variety of new constraints for validating java.io.File objects:

  • @Directoryand @NotDirectory
  • @Existingand @NotExsting
  • @Readableand @NotReadable
  • ... and a lot more

bean-validators v0.4

27 Jul 18:56
Compare
Choose a tag to compare
bean-validators v0.4 Pre-release
Pre-release

New Features

  • @ASCII makes sure a String only contains ASCII printable characters (all characters have to be in the range 32 thru 126)
  • @JavaNumber makes sure a String contains a valid Java number