Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.11.1, 3.11.0
-
None
-
Unknown
Description
Response message headers are configured like so
rest().get("/test") .responseMessage().code(200).header("header1").description("test_header") .endHeader().endResponseMessage() .to("log:log1?showBody=true");
But there is an empty enum in the resulting API doc that generates an error if parsed on swagger's online editor.
{ "swagger" : "2.0", "info" : { "version" : "1.0", "title" : "Test API" }, "host" : "localhost:8080", "basePath" : "/rest", "schemes" : [ "http" ], "paths" : { "/test" : { "get" : { "operationId" : "verb1", "responses" : { "200" : { "description" : "success", "headers" : { "header1" : { "type" : "string", "description" : "test_header", "enum" : [ ] } } } } } } } }
This doesn't happen with other data types.
Attachments
Attachments
Issue Links
- links to