Spring Boot Validation - Request parameter
I'm having an issue with Spring Boot validation on a REST controller. I'm using validation 2.4.1.
I'm trying to validate elements of a list. Here's an example:
@Validated
@RestController
@RequestMapping("path")
class ControllerClass(
private val service: ServiceClass
) {
@GetMapping()
suspend fun controllerMethod(
request: ServerHttpRequest,
@RequestParam(required = false)
@NotEmpty
id: List? // Here's the issue.
): ResponseEntity {...