You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Flavel Heyman (JIRA)" <ji...@apache.org> on 2016/04/01 20:31:25 UTC
[jira] [Closed] (CAMEL-9792) Input always a drop-down
[ 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)