Skip to content

Releases: belgif/rest-problem-java

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

Release v0.2.0

02 May 13:11
25b0042
Compare
Choose a tag to compare
Release v0.2.0 Pre-release
Pre-release

Changes

belgif-rest-problem

  • Extracted RequestValidator to separate belgif-rest-problem-validator module.
  • Added equals() and hashCode() to all Problem classes
  • Move additionalProperties from DefaultProblem to Problem

belgif-rest-problem-java-ee

  • Added Jakarta EE 9/10 support: use <classifier>jakarta</classifier>

belgif-rest-problem-spring

  • Remove be.fgov.kszbcss from default scanned problem type packages
  • Rename io.github.belgif.rest.problem.spring.scan-additional-problem-packages configuration property to io.github.belgif.rest.problem.scan-additional-problem-packages

documentation

Documentation | Javadoc