problem icon indicating copy to clipboard operation
problem copied to clipboard

test(jackson2): cover concrete throwable problem deserialization

Open codingkiddo opened this issue 6 months ago • 0 comments

Summary

This clarifies how to deserialize directly into a concrete custom subtype of AbstractThrowableProblem with Jackson 2.

When Jackson reads such a subtype directly, the problem type URI may otherwise be interpreted as a polymorphic subtype id, which can lead to an InvalidTypeIdException.

Changes

  • Add a Jackson 2 test covering direct deserialization of a concrete AbstractThrowableProblem subtype
  • Add a test fixture demonstrating the use of @JsonTypeInfo(use = JsonTypeInfo.Id.NONE)
  • Document this pattern in the README for custom concrete subtype deserialization

Verification

mvn clean verify

Related

Relates to #485

codingkiddo avatar May 19 '26 07:05 codingkiddo