davsclaus opened a new pull request, #24921: URL: https://github.com/apache/camel/pull/24921
## Summary - Fix `AvroSchemaResolver` and `ProtobufSchemaResolver` (both jackson and jackson3 variants) unconditionally promoting dynamically resolved schemas into the `this.schema` instance field - After the first exchange resolves a schema, the per-type `schemes` ConcurrentMap becomes dead code — every subsequent exchange short-circuits to the latched schema regardless of body type or per-exchange properties - The fix removes the `this.schema = answer` latch from `computeIfAbsent()` in all four resolvers, so `this.schema` is only authoritative when explicitly set via `setSchema()` ## Test plan - [x] `mvn verify` passes in all four modules: `camel-jackson-avro`, `camel-jackson-protobuf`, `camel-jackson3-avro`, `camel-jackson3-protobuf` - [ ] Verify with attached reproducer from JIRA (multi-type route with distinct inline schemas) _Claude Code on behalf of davsclaus_ -- 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]
