Description
Camel REST component deserializes response to wrong type when the type is configured using outType parameter. I attached test demonstrating the issue. It runs fine in Camel 3.7.0.
My observation is that both routes share the same DataFormat instance which is configured by first route and used by the second one. I think the problem might be not in the REST component itself but due to recent changes in data format cache'ing (CAMEL-16032, CAMEL-16045).