Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

filter relies on passing JSON through the route #11

Open
rhuss opened this issue Aug 25, 2017 · 0 comments
Open

filter relies on passing JSON through the route #11

rhuss opened this issue Aug 25, 2017 · 0 comments

Comments

@rhuss
Copy link
Contributor

rhuss commented Aug 25, 2017

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.

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

No branches or pull requests

1 participant