Skip to content

Releases: belgif/rest-problem-java

Release v0.22.0

27 Apr 13:23
46904c6

Choose a tag to compare

Release v0.22.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Bump bundled jandex indexVersion from 10 to 11. This prevents warnings on Quarkus, but may result in warnings on JBoss EAP 7.4 (end-of-support).

belgif-rest-problem-spring-boot

⚠️ Breaking change: Classes were moved to boot-specific package

  • Fix @ConditionalOnClass loading of optional components

belgif-rest-problem-java-ee

⚠️ Breaking change: Classes were moved to client-, core- and server-specific packages

  • Modify ProblemClientResponseFilter to obtain the ObjectMapper from the underlying JAX-RS or CDI runtime, instead of hardcoded ProblemObjectMapper instance
  • Don’t register ClientProblemObjectMapperContextResolver on Quarkus
  • Prevent duplicate registrations of same JAX-RS component

belgif-rest-problem-quarkus

  • Replace Jakarta EE ContextResolver<ObjectMapper> by Quarkus ProblemObjectMapperCustomizer
  • Replace quarkus-rest-jackson-common dependency by quarkus-jackson

Documentation | Javadoc

Release v0.21.0

27 Mar 11:11
328591b

Choose a tag to compare

Release v0.21.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Fix concurrency issue in InputValidationIssues.BELGIF_ISSUE_TYPE_HREFS cache

belgif-rest-problem-spring-boot-3-starter

⚠️ Breaking change: Some classes were moved to client- and server-specific packages

The belgif-rest-problem-spring-boot-3 module has been renamed to belgif-rest-problem-spring-boot-3-starter. belgif-rest-problem-spring-boot-3 is still released with a relocation pom for backwards compatibility.

Provide separate modules in case you specifically only want to use problems either client-side or server-side.

  • belgif-rest-problem-spring-boot-3-client-starter
  • belgif-rest-problem-spring-boot-3-server-starter

Note that you can keep using belgif-rest-problem-spring-boot-3-starter if you want both client-side and server-side integration.

belgif-rest-problem-spring-boot-4-starter

⚠️ Breaking change: Some classes were moved to client- and server-specific packages
⚠️ Breaking change: Users of belgif-rest-problem-spring-boot-4 should now depend on the belgif-rest-problem-spring-boot-4-starter module.

Provide separate modules in case you specifically only want to use problems either client-side or server-side.

  • belgif-rest-problem-spring-boot-4-client-starter
  • belgif-rest-problem-spring-boot-4-server-starter

Note that you can use belgif-rest-problem-spring-boot-4-starter when you want both client-side and server-side integration.

belgif-rest-problem-spring

Depend on this module to integrate with Spring without depending on Spring Boot. When using one of the spring boot modules, it is added as transitive dependency.

It provides support for both Jackson 2 and 3.

This release also extends the BeanValidationExceptionsHandler with support for HandlerMethodValidationException, an exception thrown for bean validation exceptions when a RestController is not annotated with @Validated.

belgif-rest-problem-java-ee

⚠️ Breaking change: The <classifier>jakarta</classifier> variant of belgif-rest-problem-java-ee no longer exists and should be replaced by belgif-rest-problem-jakarta-ee.

Provide separate modules in case you specifically only want to use problems either client-side or server-side.

  • Java EE:
    • belgif-rest-problem-java-ee-client
    • belgif-rest-problem-java-ee-server
  • Jakarta EE:
    • belgif-rest-problem-jakarta-ee-client
    • belgif-rest-problem-jakarta-ee-server

Note that you can keep using belgif-rest-problem-java-ee as before when you want both client-side and server-side integration.

Changes impacting RESTEasy clients:

  • Remove @Provider annotation on ProblemClientResponseFilter so it no longer gets auto-registered for RESTEasy clients
  • Introduce ResteasyProblemSupport class for creating a problem-enabled RESTEasy proxy client

belgif-rest-problem-quarkus

Provide separate modules in case you specifically only want to use problems either client-side or server-side.

  • belgif-rest-problem-quarkus-client
  • belgif-rest-problem-quarkus-server

Note that you can keep using belgif-rest-problem-quarkus as before when you want both client-side and server-side integration.

Documentation | Javadoc

Release v0.20.1

02 Feb 14:33
a23369d

Choose a tag to compare

Release v0.20.1 Pre-release
Pre-release

Changes

belgif-rest-problem-bom

Remove test scope dependencies inherited from parent pom.

Documentation | Javadoc

Release v0.20.0

13 Jan 08:24
a331e54

Choose a tag to compare

Release v0.20.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Disable stacktrace on Problem exception class by default, as performance optimization. You can configure io.github.belgif.rest.problem.stack-trace-enabled = true to opt out of this.
  • Add name with JSON location to schemaViolation issue for JSON syntax error

belgif-rest-problem-spring-boot-4

  • Fix conditional loading of optional components

Documentation | Javadoc

Release v0.19.1

07 Jan 10:34
41ad63f

Choose a tag to compare

Release v0.19.1 Pre-release
Pre-release

Changes

⚠️ Breaking change: Spring Boot 2 support has been dropped from this release.

belgif-rest-problem

  • Added support for Jackson 3:
    • ProblemTypeRegistry now returns Map<String, Class<?>> instead of NamedType[] to decouple from Jackson version
    • Added io.github.belgif.rest.problem.ProblemModuleJackson3
    • Ignore read-only properties "type", "status" and "title" in setAdditionalProperty()

belgif-rest-problem-validator

  • Stop relying on openapi schema validation: implement all validation aspects, including those already specified by the schema

belgif-rest-problem-java-ee

  • Added AbstractInputParamConverterProvider base class for implementing input-aware ("in" and "name") JAX-RS ParamConverters
  • Unwrap BadRequestProblem exception cause thrown by JAX-RS ParamConverters
  • Added exception mapper for converting Jackson JsonMappingException and JsonParseException to BadRequestProblem with schemaViolation issue type

belgif-rest-problem-spring

  • Renamed to belgif-rest-problem-spring-boot-common

belgif-rest-problem-spring-boot-2

  • Removed module

belgif-rest-problem-spring-boot-4

  • Added new module for Spring Boot 4 and Jackson 3

Documentation | Javadoc

Release v0.18.0

28 Nov 08:54
5e3949f

Choose a tag to compare

Release v0.18.0 Pre-release
Pre-release

Changes

belgif-rest-problem

belgif-rest-problem-validator

  • Add validator for Belgif openapi-employment-identifier EmployerId

belgif-rest-problem-java-ee

  • Correctly determine input source for bean validation issues from properties in @BeanParam class
  • Improve bean validation support for @FormParam, @MatrixParam and @CookieParam

belgif-rest-problem-spring

  • Improve bean validation support for @MatrixVariable and @CookieValue

Documentation | Javadoc

Release v0.17.0

23 May 09:18
8913797

Choose a tag to compare

Release v0.17.0 Pre-release
Pre-release

Changes

⚠️ This release contains potentially breaking changes

belgif-rest-problem-java

  • Normalize *Id and *Code input names in 404 Resource Not Found detail message to id and code to account for updated [id-name] rule
  • ⚠️ Renamed io.github.belgif.rest.problem.i18n property to io.github.belgif.rest.problem.i18n-enabled
  • ⚠️ By default, replace specialized input validation issue types invalidStructure, invalidPeriod, outOfRange, rejectedInput, requiredInput and cross-parameter validation issue types by new general issue type urn:problem-type:belgif:input-validation:invalidInput.
  • ⚠️ By default, don’t populate inputs[] array for issue types that relate to multiple inputs.

Documentation | Javadoc

Release v0.16.1

28 Apr 11:22

Choose a tag to compare

Release v0.16.1 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Use English by default for I18N messages instead of fallback to system locale

Documentation | Javadoc

Release v0.15.0

05 Feb 16:54
75beba2

Choose a tag to compare

Release v0.15.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Align MismatchedInputException detail message with Bean Validation
  • Fix input path for MismatchedInputException on array properties

belgif-rest-problem-quarkus

  • Add experimental support for Quarkus in native mode

Documentation | Javadoc

Release v0.14.0

28 Jan 12:55
b1346c7

Choose a tag to compare

Release v0.14.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Map Jackson MismatchedInputException (for missing required properties on request body) to BadRequestProblem

Documentation | Javadoc