camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavel Heyman (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAMEL-9792) Input always a drop-down
Date Fri, 01 Apr 2016 18:31:25 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Flavel Heyman closed CAMEL-9792.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.17.0

empty enum removed.

> Input always a drop-down
> ------------------------
>
>                 Key: CAMEL-9792
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9792
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-swagger
>    Affects Versions: 2.16.2
>            Reporter: Flavel Heyman
>             Fix For: 2.17.0
>
>
> The json below contains an empty enum:
> {code:title=swagger.json|borderStyle=solid}
> parameters: [
>   {...
>     name: "customerId",
>     in: "path",
>     description: "The customer ID/RCIF number.",
>     required: true,
>     type: "string",
>     enum: [ ]
>   }
> ],...
> {code}
> But the Camel Code below code has no "allowableValues":
> {code:title=camel.java|borderStyle=solid}
> 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()...;
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message