ruromero opened a new issue #2685:
URL: https://github.com/apache/camel-quarkus/issues/2685


   When defining routes using the rest dsl I have not been able to use query 
parameters with hyphen. Only when removing such hyphens the route seems to be 
properly loaded.
   
   The following doesn't work:
   ```
           rest()
               .id("example")
               .get("/hello/{my-param}")
               .param()
                   .name("my-param")
                   .type(RestParamType.path)
                   .dataType("string")
                   .required(true)
               .endParam()
               .to("direct:hello");
           from("direct:hello").to("log:hello?level=INFO");
   ```
   This is how it appears in the logs: `Started route159 
(rest://get:/hello/%7Bmy-param%7D)`
   
   Whereas after removing the hyphen in the queryParam name, the route works as 
expected.


-- 
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:
[email protected]


Reply via email to