FAQ
Hi Everyone:

I have a problem with path parameters when using the REST DSL with
Camel 2.16.2 and the camel-swagger-java module. Path parameters are
always exposed as enum types through Swagger.

The simplified REST part in my route builder looks as follows:

===
[...]
rest("/test-api/v1").description("...")
     .consumes("application/json").produces("application/json")
     .put("/tests/{testNumber}/details").description("...")
         .param().name("testNumber").type(RestParamType.path)
             .dataType("string").description("...").endParam()
[...]
===

The path parameter "testNumber" is exposed as an enum type through
Swagger, see the corresponding Swagger JSON document excerpt:

===
[...]
"parameters" : [ {
   "name" : "testNumber",
   "in" : "path",
   "description" : "...",
   "required" : true,
   "type" : "string",
   "enum" : [ ]
}, [...]
===

Is this a bug or have I missed something?

Thanks in advance,
Gregor

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 5 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMar 30, '16 at 9:09p
activeApr 1, '16 at 9:52p
posts5
users2
websitecamel.apache.org

2 users in discussion

Gregor Zurowski: 3 posts Claus Ibsen: 2 posts

People

Translate

site design / logo © 2021 Grokbase