[ 
https://issues.apache.org/jira/browse/CAMEL-26502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136754#comment-18136754
 ] 

Claus Ibsen commented on CAMEL-26502:
-------------------------------------

PR: https://github.com/apache/camel/pull/28982

startCase now parses a JSON object given as String, byte[] or InputStream into 
the Map of contract inputs with Jackson. JSON text that is not an object, and 
text that is not JSON, fail with an InvalidPayloadException that says why.

_Claude Code on behalf of Claus Ibsen (davsclaus)_

> camel-bonita - startCase accepts a JSON text body as the contract inputs
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-26502
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26502
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bonita
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Follow-up of CAMEL-26120 (PR #28897). startCase takes the contract inputs as 
> a Map body; since CAMEL-26120 a JSON text body fails early with an 
> InvalidPayloadException and the docs say to unmarshal it first.
> Accept a JSON object as text (String, byte[], InputStream) and parse it into 
> the Map of contract inputs, as camel-wordpress does since CAMEL-26163. A body 
> that is not a JSON object still fails with InvalidPayloadException.
> _Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to