camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavel Heyman (JIRA)" <>
Subject [jira] [Created] (CAMEL-9792) Input always a drop-down
Date Fri, 01 Apr 2016 15:47:25 GMT
Flavel Heyman created CAMEL-9792:

             Summary: Input always a drop-down
                 Key: CAMEL-9792
             Project: Camel
          Issue Type: Bug
          Components: camel-swagger
    Affects Versions: 2.16.2
            Reporter: Flavel Heyman

The json below contains an empty enum:
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":
    //--------Swagger Documentation--------
    .description("Retrieve Customer based on ID number")
    //--------Swagger Documentation--------
    .param().name("customerId").type(RestParamType.path).description("The customer IDnumber.").required(true).dataType("string").endParam()

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

This message was sent by Atlassian JIRA

View raw message