-
-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
When I add validation annotations to a parameter, the documentation page shows a 500 error. However, when I remove the validation annotations, everything works fine.
with validation:
@GetMapping("/test/{id}")
public String testPost(@PathVariable @NotNull @Max(value = 100) Integer id) {
return "Hello World!" + id;
}
without validation:
@GetMapping("/test/{id}")
public String testPost(@PathVariable @NotNull Integer id) {
return "Hello World!" + id;
}
versions:
org.springframework.boot
spring-boot-starter-parent
3.2.1
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
kodlan
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right