Bean Validation Api 2.0 not working with Spring MVC on top of Groovy 3.

So this code snippet won't work:

@RestController
class DemoController {
    @PostMapping("api")
    String post(@Validated @RequestBody Names names, BindingResult result){
        return "Hello";
    }
}


class Names {
    @NotEmpty
    List< @NotEmpty String> names;
}

Validation on Type Param String are not triggering

Comment From: snicoll

Sorry it took so long but I am not sure why this is reported against Spring (given the title). We'd like to be able to investigate but we will need a small sample we can run ourselves (rather than code snippet in text). You can attach the sample project as a zip here or push the code to a GitHub repository. Thanks!

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.