In BaseMainSupport.java the route id to be used for routes instantiated based on templates using properties seems to be determined by using square brackets with non-number indices (see
> String id = StringHelper.between(entry.getKey(), "[", "]"); ...
> source.addParameter(id, key, entry.getValue()); ...
I fear that may break compatibility with YAML formatted application configuration files, or at least I can't figure out how to model it in YAML.
My attempts are shown in the two YAML excepts below, which will cause
"binding to target [Bindable@7af327e3 type = java.util.List<java.util.Map<java.lang.String, java.lang.String>> failed".
The first example results in properties generated i. e. camel.route-template.config.auto-start, as I can't get around the yaml list.
- template-id: "template-route"
Pls. provide a possibility or an example to configure routes based on templates in YAML.
Additional remark: I tried to set the route id in a route template definition converter, however, in DefaultModel.java, the id is overwritten after the converter is applied:
RouteDefinition def = converter.apply(target, prop);
if (routeId != null)
Is that intended?