davsclaus edited a comment on issue #631:
URL: https://github.com/apache/camel-k-runtime/issues/631#issuecomment-791450040


   I wonder if we need something like this with route template DSL
   ```
                   
routeTemplate("myTemplate").templateParameter("foo").templateOptionalParameter("maxKeep")
                           .from("direct:{{foo}}")
                           .to("mock:result?retainFirst={{maxKeep}}");
   ```
   
   As then you make it standout in the parameter definitions in the top which 
are required, and which are optional.
   
   Then in the route DSL you just use {{key}} where its in use. Then you dont 
need to remember to use ? for optional. However this requires camel-core to 
transform the DSL by automatic replacing `{{maxKeep}}` to `{{?maxKeep}}` as it 
was declared as optional. And for this I need to add a new hook into the 
properties component 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to