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

Specifying allowableValues in RestOperationParamDefinition is not output as an enum in swagger output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.16.1
    • 2.16.2, 2.17.0
    • camel-swagger
    • None
    • Unknown

    Description

      Doing something like this:

      rest("/").post("{siteKey}/{userId}")
        .param()
          .name("siteKey")
          .allowableValues("ST1", "ST2", "ST3", "ST7", "SP1")
        .endParam()
      .endRest();
      

      Is only outputting a parameter object like this:

      {
      "name": "siteKey",
      "in": "path",
      "description": "Which site to use for the login.",
      "required": true,
      "type": "string"
      }
      

      There's an enum key.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mattsicker Matt Sicker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: