Croway opened a new pull request, #2053: URL: https://github.com/apache/camel-spring-boot/pull/2053
## Summary Since apache/camel#28156 (CAMEL-24426), the Gson data format only uses the `CamelGsonUnmarshalType` header when the new `allowUnmarshallType` option is enabled. The two starter tests that rely on this header have failed in the `Camel-Spring-Boot Daily` main job since build #415: - `GsonUnmarshalTypeFromHeaderTest.testUnmarshalTypeFromHeader` - `SpringGsonUnmarshalTypeFromHeaderTest.testUnmarshalTypeFromHeader` Both fail with `No type converter available to convert from type: com.google.gson.internal.LinkedTreeMap to the required type: TestPojo`. This PR makes the same change to the starter tests that the core PR made to its own tests: - The Java DSL route uses `new JsonDataFormat(JsonLibrary.Gson).allowUnmarshallType(true)`. - The XML route uses `<json library="Gson" allowUnmarshallType="true"/>`. - A new test, `testUnmarshalTypeFromHeaderIsIgnoredByDefault`, checks that the header is ignored when the option is not set. The behaviour change is already documented in the Camel 4.24 upgrade guide, in the section "camel-gson, camel-jsonb - the unmarshal type header needs allowUnmarshallType". ## Test `mvn verify` in `components-starter/camel-gson-starter`: 18 tests, 0 failures. _Claude Code on behalf of Federico Mariani_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
