WMK666666 commented on PR #29593:
URL: https://github.com/apache/camel/pull/29593#issuecomment-6797355944

   Both points are in 55924d3.
   
   `writeValueAsString` no longer wraps: `JacksonException` is unchecked in 
Jackson 3, so it propagates as it is, which is what the Jackson 3 client of the 
builder does too. `readValue` still throws `JsonReadException`, which it does 
on purpose so callers can tell a malformed response apart.
   
   I also linked the upstream request from the class Javadoc — 
docling-project/docling-java#785 adds a `bearerToken` option to 
`DoclingServeClient`, so the subclass can be replaced by the client option once 
it lands, and the link makes that easy to find.
   
   I left `toBuilder()` as it is: it does not carry the token, which Camel 
never calls (the comment says so), and throwing would only turn a dormant path 
into a runtime surprise.
   


-- 
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]

Reply via email to