Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20492

camel-core - Rest DSL with clientRequestValidation can support allowed values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.6.0
    • camel-core, rest
    • None
    • Unknown

    Description

      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()

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: