Skip to content

Releases: belgif/rest-problem-java

Release v0.12.0

08 Jan 12:01
e0c6d62
Compare
Choose a tag to compare
Release v0.12.0 Pre-release
Pre-release

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
  • ⚠️ Replace urn:problem-type:cbss:input-validation:referencedResourceNotFound by standardized urn: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

Documentation | Javadoc

Release v0.11.0

20 Nov 14:39
ee4c05b
Compare
Choose a tag to compare
Release v0.11.0 Pre-release
Pre-release

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

Documentation | Javadoc

Release v0.10.0

30 Oct 16:04
2e472da
Compare
Choose a tag to compare
Release v0.10.0 Pre-release
Pre-release

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)

belgif-rest-problem-java-ee

  • Add EJBExceptionMapper that unwraps Problem cause, to address the removed @ApplicationException annotation

belgif-rest-problem-spring

Documentation | Javadoc

Release v0.9.0

23 Oct 08:55
e47e441
Compare
Choose a tag to compare
Release v0.9.0 Pre-release
Pre-release

Changes

belgif-rest-problem-bom

  • Added Maven BOM (Bill of Materials) for dependency versions of belgif-rest-problem modules

belgif-rest-problem

belgif-rest-problem-java-ee

  • Ensure ProblemClientResponseFilter gets registered for JAX-RS clients

Documentation | Javadoc

Release v0.8.0

30 Sep 12:15
07a6e28
Compare
Choose a tag to compare
Release v0.8.0 Pre-release
Pre-release

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

Documentation | Javadoc

Release v0.7.0

26 Sep 13:43
af5eb31
Compare
Choose a tag to compare
Release v0.7.0 Pre-release
Pre-release

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

Documentation | Javadoc

Release v0.6.0

17 Sep 06:25
a1dad19
Compare
Choose a tag to compare
Release v0.6.0 Pre-release
Pre-release

Changes

belgif-rest-problem-validator

  • Fix validation for "overflow" SSINs

belgif-rest-problem-spring

  • Make RestControllerAdvice components @ConditionalOnWebApplication

Documentation | Javadoc

Release v0.5.0

02 Jul 07:42
cbf8dae
Compare
Choose a tag to compare
Release v0.5.0 Pre-release
Pre-release

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

Documentation | Javadoc

Release v0.4.0

10 Jun 11:00
4d1f5fc
Compare
Choose a tag to compare
Release v0.4.0 Pre-release
Pre-release

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

Documentation | Javadoc

Release v0.3.0

17 May 10:34
85ed740
Compare
Choose a tag to compare
Release v0.3.0 Pre-release
Pre-release

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>

Documentation | Javadoc