We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger version is 1.5.3-M2-SNAPSHOT (branch develop_2.0) This test resource:
@Api @Path("xxx") public class ResourceXXX { @GET @Path("test") @ApiResponses({ @ApiResponse(code = 400, message = "Message for URL", response = URL.class), @ApiResponse(code = 401, message = "Message for Long", response = Long.class), @ApiResponse(code = 402, message = "Message for String", response = String.class) }) public Response test() { return null; } }
is reported as follows:
{ "swagger" : "2.0", "paths" : { "/xxx/test" : { "get" : { "operationId" : "test", "parameters" : [ ], "responses" : { "400" : { "description" : "Message for URL", "schema" : { "$ref" : "#/definitions/string" } }, "401" : { "description" : "Message for Long" }, "402" : { "description" : "Message for String" } } } } }, "definitions" : { "string" : { "type" : "object", "properties" : { "protocol" : { "type" : "string" }, "host" : { "type" : "string" }, "port" : { "type" : "integer", "format" : "int32" }, "file" : { "type" : "string" }, "authority" : { "type" : "string" }, "ref" : { "type" : "string" }, "path" : { "type" : "string" }, "query" : { "type" : "string" }, "userInfo" : { "type" : "string" }, "defaultPort" : { "type" : "integer", "format" : "int32" }, "content" : { "type" : "object" } } } } }
As you can see URL was reported as composite class of type string, Long and String were not reported at all.
URL
string
Long
String
The text was updated successfully, but these errors were encountered:
Merge pull request #1130 from tomtit/issue1120
95a199a
Fixed #1120: Models handling has been reworked.
tomtit
No branches or pull requests
Swagger version is 1.5.3-M2-SNAPSHOT (branch develop_2.0)
This test resource:
is reported as follows:
As you can see
URL
was reported as composite class of typestring
,Long
andString
were not reported at all.The text was updated successfully, but these errors were encountered: