You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/17 15:49:49 UTC

[GitHub] [camel-k-runtime] nicolaferraro commented on issue #632: Functions to escape Kamelet parameters

nicolaferraro commented on issue #632:
URL: https://github.com/apache/camel-k-runtime/issues/632#issuecomment-780651715


   > Maybe a kamelet parameter needs to a way to specify valid inputs. So you can say that valid is only alpha numeric, or max length is 10, min lenght is 5, etc. And other kinds of rules.
   > 
   > For O Niel then simple language allows escape, so you can say
   > 
   > ```
   >     O\'Niel
   > ```
   > 
   > But this is jsonpath in the example
   
   Yeah, that's an option, but not the more user-friendly in the general case, since it would require that the user manually escapes `O'Neil` into `O\'Neil`. Ideally it's the template mechanism that should allow the template writer to apply escaping functions in order to use the "transformed" version of the parameter in different parts of the route template... But I don't know how, or if it could be done declaratively.


----------------------------------------------------------------
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:
users@infra.apache.org