You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/01/27 14:08:39 UTC

[jira] [Resolved] (CAMEL-9537) Specifying allowableValues in RestOperationParamDefinition is not output as an enum in swagger output

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

Claus Ibsen resolved CAMEL-9537.
--------------------------------
       Resolution: Duplicate
    Fix Version/s:     (was: 2.16.3)
                   2.16.2

Duplicate of CAMEL-9446

> Specifying allowableValues in RestOperationParamDefinition is not output as an enum in swagger output
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9537
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9537
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-swagger
>    Affects Versions: 2.16.1
>            Reporter: Matt Sicker
>            Assignee: Claus Ibsen
>             Fix For: 2.16.2, 2.17.0
>
>
> Doing something like this:
> {code}
> rest("/").post("{siteKey}/{userId}")
>   .param()
>     .name("siteKey")
>     .allowableValues("ST1", "ST2", "ST3", "ST7", "SP1")
>   .endParam()
> .endRest();
> {code}
> Is only outputting a parameter object like this:
> {code}
> {
> "name": "siteKey",
> "in": "path",
> "description": "Which site to use for the login.",
> "required": true,
> "type": "string"
> }
> {code}
> [There's an enum key|http://swagger.io/specification/#parameterObject].



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