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
Labels
group/integration
Library used in the the integration runtimes
status/stale
Issue considered to be stale so that it can be closed soon
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 thejsonpath
filter (which also knows how to use "simple" for an expression), if its another object, we are using thesimple
filter.The text was updated successfully, but these errors were encountered: