Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions should not marshal into JSON if the input was not JSON #261

Closed
nicolaferraro opened this issue May 10, 2021 · 0 comments · Fixed by #269
Closed

Actions should not marshal into JSON if the input was not JSON #261

nicolaferraro opened this issue May 10, 2021 · 0 comments · Fixed by #269
Assignees

Comments

@nicolaferraro
Copy link
Member

nicolaferraro commented May 10, 2021

They should deserialize JSON if the content-type is "application/json" and then marshal it again into JSON before completing. But if the input is not JSON, they should leave it as JsonNode.

In other words, this step should be done only if the flow has entered the application/json choice branch before (we may set an exchange property to track).

Also setting the content-type should be conditional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants