ninjaframework / ninja

Ninja is a full stack web framework for Java. Rock solid, fast and super productive.
http://www.ninjaframework.org
Apache License 2.0
1.91k stars 521 forks source link

Problem using Validation & DTO (v6.8.1) #731

Closed danielsawan closed 2 years ago

danielsawan commented 2 years ago

I recently updated my Ninja to v6.8.1 a new bug, that i doesn't have in older vesion appear in Validation DTO.

In this simple example

@Min(value = 2)
public String name = "";

The bug appear in each method the old one "validation.hasBeanViolations()" and the new one "validation.hasViolations()"

So is there a change on how controls actually work or is it a bug ?

danielsawan commented 2 years ago

A simple solution i find is to replace by @NotEmpty