Important
This extension has been archived because all of the changes here have been backported into Quarkus RestEasy Problem extension!
RFC9457 Problem extension for Quarkus RESTeasy/JaxRS applications. It maps Exceptions to application/problem+json HTTP responses. Inspired by Zalando Problem library, originally open sourced by Tietoevry, now part of Quarkiverse.
This library extends the original Quarkus RestEASY Problem library by providing first-class OpenAPI support, making it seamless to integrate with OpenAPI specifications and tooling. Opinionated changes include the following:
- RFC-9457 support only (dropped support of RFC-7807)
- Validation constraint violations return
HTTP 422 Unprocessable Entitystatus HttpProblemfollows OpenAPI standards and is JSON serializable- Mapped Diagnostic Context (MDC) values are included in the
contextfield - Validation errors are represented in the RFC9457
errorsarray @ApiResponsefor 4xx/5xx automatically get mapped withcontent = @Content(mediaType = "application/problem+json", schema = @Schema(implementation = HttpProblem.class))- Improve MicroProfile REST Client API to API forwarding of
HttpProblemresponses .with(key, value)is now.withContext(key, value)