-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30225 from gsmet/resteasy-hv-produced-inheritance
Take into account @produces annotations from interfaces and superclasses in JaxrsEndPointValidationInterceptor
- Loading branch information
Showing
4 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceSuperclass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.quarkus.it.hibernate.validator; | ||
|
||
import javax.validation.constraints.Digits; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PathParam; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.core.MediaType; | ||
|
||
public class HibernateValidatorTestResourceSuperclass { | ||
|
||
@GET | ||
@Path("/rest-end-point-interface-validation-annotation-on-overridden-method/{id}/") | ||
@Produces(MediaType.TEXT_PLAIN) | ||
public String testRestEndPointInterfaceValidationWithAnnotationOnOverriddenMethod( | ||
@Digits(integer = 5, fraction = 0) @PathParam("id") String id) { | ||
return id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters