Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

filter relies on passing JSON through the route #340

Closed
syndesis-bot opened this issue Nov 15, 2017 · 1 comment
Closed

filter relies on passing JSON through the route #340

syndesis-bot opened this issue Nov 15, 2017 · 1 comment
Labels
group/integration Library used in the the integration runtimes status/stale Issue considered to be stale so that it can be closed soon

Comments

@syndesis-bot
Copy link
Collaborator

@rhuss 2017-08-25

The current runtime assumes (a) that the filter is given as jsonpath and (b) that the message body is in json (in various formats).

However, in Syndesis different types can flow through a route and we assume simple as the expression language for a filter.

This implies that we have to detect the outputShape of the endpoint before the filter and whether this is a JSON document or plain object and then decide on the fly which filter to use.

Alternatively, and this will be the first approach which I'll try, is to check during runtime for the message, and when its a String then use the jsonpath filter (which also knows how to use "simple" for an expression), if its another object, we are using the simple filter.

@rhuss rhuss added group/integration Library used in the the integration runtimes and removed module/runtime labels Feb 4, 2018
@gashcrumb gashcrumb added this to the Backlog milestone Mar 19, 2018
@heiko-braun heiko-braun modified the milestone: Backlog Aug 27, 2018
@stale
Copy link

stale bot commented Nov 25, 2018

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale Issue considered to be stale so that it can be closed soon label Nov 25, 2018
@stale stale bot closed this as completed Dec 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
group/integration Library used in the the integration runtimes status/stale Issue considered to be stale so that it can be closed soon
Projects
None yet
Development

No branches or pull requests

4 participants