Claus Ibsen created CAMEL-20492:
-----------------------------------

             Summary: camel-core - Rest DSL with clientRequestValidation can 
support allowed values
                 Key: CAMEL-20492
                 URL: https://issues.apache.org/jira/browse/CAMEL-20492
             Project: Camel
          Issue Type: Improvement
          Components: camel-core, rest
            Reporter: Claus Ibsen
             Fix For: 4.x


In RestBindingAdvice we can add support for allowed values if a query/header 
parameter has defined this. Today we only check if the option is provided or 
not.

.param()
.name("testparam")
.type(RestParamType.query)
.dataType("integer")
.allowableValues("0,1,2,3,4")
.required(true)
.endParam()



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to