Skip to content

Commit

Permalink
Remove erroneous RESTEasy Classic import from ResteasyReactiveViolati…
Browse files Browse the repository at this point in the history
…onExceptionMapper
  • Loading branch information
geoand authored and igorregis committed Oct 16, 2022
1 parent 13f41fe commit 826f5e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;

import org.jboss.resteasy.api.validation.Validation;

@Provider
public class ResteasyReactiveViolationExceptionMapper implements ExceptionMapper<ValidationException> {

private static final String VALIDATION_HEADER = "validation-exception";

@Context
HttpHeaders headers;

Expand Down Expand Up @@ -69,7 +69,7 @@ private boolean isReturnValueViolation(ConstraintViolation<?> violation) {
private Response buildViolationReportResponse(ConstraintViolationException cve) {
Status status = Status.BAD_REQUEST;
Response.ResponseBuilder builder = Response.status(status);
builder.header(Validation.VALIDATION_HEADER, "true");
builder.header(VALIDATION_HEADER, "true");

// Check standard media types.
MediaType mediaType = ValidatorMediaTypeUtil.getAcceptMediaTypeFromSupported(headers.getAcceptableMediaTypes());
Expand Down

0 comments on commit 826f5e9

Please sign in to comment.