Releases: belgif/rest-problem-java
Releases · belgif/rest-problem-java
Release v0.12.0
Changes
belgif-rest-problem
- Add internationalization support for localized detail messages based on Accept-Language HTTP request header
- Don’t include null (issue) input values when serializing
⚠️ Replaceurn:problem-type:cbss:input-validation:referencedResourceNotFound
by standardizedurn:problem-type:belgif:input-validation:referencedResourceNotFound
- Add fluent setter methods:
- Problem: detail, href, instance, additionalProperties
- InputValidationProblem: issues
- RetryAfterProblem: retryAfter, retryAfterSec
- Improve WWW-Authenticate header for token-related problem types:
- Support setting the "realm" attribute
- Add "error_description" and "scope" attributes for missing_scope
belgif-rest-problem-spring:
- Fix compatibility issue with Spring Boot 3.4
belgif-rest-problem-quarkus:
- New module for Quarkus support (only in JVM mode)
belgif-rest-problem-bom:
- Added jakarta classifier artifacts
Release v0.11.0
Changes
belgif-rest-problem
- Add
in(Input<?> input)
to InputValidationIssue for a fluent single input setter
belgif-rest-problem-spring
- Fix non-deterministic configuration for retrieving parameter names from Spring MVC annotations
Release v0.10.0
Changes
belgif-rest-problem-java
- Remove
@ApplicationException
annotation on Problem, because it could potentially cause compilation errors when used in combination with annotation processors - Disallow creation of InputValidationIssue with inputs[] of size 1
⚠️ Potentially breaking:- removed
InputValidationIssue.setInputs(List<Input<?>> inputs)
- removed
InputValidationIssue.setInputs(Input<?>... inputs)
- removed
InputValidationIssue.input(Input<?> input)
- removed
belgif-rest-problem-java-ee
- Add EJBExceptionMapper that unwraps Problem cause, to address the removed
@ApplicationException
annotation
belgif-rest-problem-spring
- Added support for InvalidRequestException thrown by the Atlassian swagger-request-validator
Release v0.9.0
Changes
belgif-rest-problem-bom
- Added Maven BOM (Bill of Materials) for dependency versions of belgif-rest-problem modules
belgif-rest-problem
- Add WWW-Authenticate HTTP response header to token-related problem types
belgif-rest-problem-java-ee
- Ensure ProblemClientResponseFilter gets registered for JAX-RS clients
Release v0.8.0
Changes
belgif-rest-problem-spring
- Map HttpRequestMethodNotSupportedException to HTTP 405 "Method Not Allowed" + Allow HTTP header
- Map HttpMediaTypeNotAcceptableException to HTTP 406 "Not Acceptable"
- Map HttpMediaTypeNotSupportedException to HTTP 415 "Unsupported Media Type"
- Sanitize BadRequestProblem detail message for HttpMessageNotReadableException
Release v0.7.0
Changes
belgif-rest-problem-validator
- Make RequestValidator extensible by introducing AbstractRequestValidator base class
belgif-rest-problem-spring
- Extract ProblemWebClientCustomizer to belgif-rest-problem-spring-boot-2 and belgif-rest-problem-spring-boot-3 to fix NoSuchMethodError compatibility issue
- Add AnnotationParameterNameDiscoverer to retrieve parameter names from Spring MVC annotations for bean validation
belgif-rest-problem-java-ee
- Add JaxRsParameterNameProvider to retrieve parameter names from JAX-RS annotations for bean validation
Release v0.6.0
Changes
belgif-rest-problem-validator
- Fix validation for "overflow" SSINs
belgif-rest-problem-spring
- Make RestControllerAdvice components @ConditionalOnWebApplication
Release v0.5.0
Changes
belgif-rest-problem-spring
Split into belgif-rest-problem-spring-boot-2 and belgif-rest-problem-spring-boot-3.
To benefit from Spring Boot 2.x or 3.x specific features, replace dependencies to belgif-rest-problem-spring by the version-specific variant.
belgif-rest-problem-spring-boot-3
- Map NoResourceFoundException to 404 urn:problem-type:belgif:resourceNotFound
- Added support for RestClient API
Release v0.4.0
Changes
belgif-rest-problem
- Removed deprecated InvalidParamProblem: use InputValidationProblem, which supports both the legacy invalidParams[] and the new issues[] structure
- Replace specific urn:problem-type:cbss:input-validation:unknownSsin issue type by generic urn:problem-type:cbss:input-validation:referencedResourceNotFound
- Added optional replacedByHref property to replacedSsin issue type
- Allow use of inputs[] and in/name/value when unmarshalling JSON
belgif-rest-problem-java-ee
- Fix JAX-RS proxy for methods from Configurable interface
- Fix problem response for missing request body
belgif-rest-problem-validator
- Added requireIfPresent check for validating input(s) that must be present when a given target input is present
Release v0.3.0
Changes
belgif-rest-problem
- Removed deprecated "status" and "instance" properties from InputValidationIssue
belgif-rest-problem-spring
- Added support for bean validation
- Added Jakarta EE 9/10 support: use
<classifier>jakarta</classifier>