Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.16.2
    • Fix Version/s: 2.17.0
    • Component/s: camel-swagger
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The json below contains an empty enum:

      swagger.json
      parameters: [
        {...
          name: "customerId",
          in: "path",
          description: "The customer ID/RCIF number.",
          required: true,
          type: "string",
          enum: [ ]
        }
      ],...
      

      But the Camel Code below code has no "allowableValues":

      camel.java
      rest(baseUrl)
          //--------Swagger Documentation--------
          .description("Retrieve Customer based on ID number")
          .produces(MediaType.APPLICATION_JSON_VALUE)
        .get("/{customerId}")
          //--------Swagger Documentation--------
          .param().name("customerId").type(RestParamType.path).description("The customer IDnumber.").required(true).dataType("string").endParam()
        .route()...;
      

      This empty enum value forces the UI to produce an empty uneditable drop-down, when it should be a text-box.

      Based on the latest master branch of https://github.com/swagger-api/swagger-ui

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flavouski Flavel Heyman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: