{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1819","repository_url":"https://api.github.com/repos/swagger-api/swagger-core","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1819/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1819/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1819/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1819","id":158426383,"number":1819,"title":"jax-rs @BeanParam with constructor results in NPE","user":{"login":"dsmiley","id":377295,"avatar_url":"https://avatars.githubusercontent.com/u/377295?v=3","gravatar_id":"","url":"https://api.github.com/users/dsmiley","html_url":"https://github.com/dsmiley","followers_url":"https://api.github.com/users/dsmiley/followers","following_url":"https://api.github.com/users/dsmiley/following{/other_user}","gists_url":"https://api.github.com/users/dsmiley/gists{/gist_id}","starred_url":"https://api.github.com/users/dsmiley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsmiley/subscriptions","organizations_url":"https://api.github.com/users/dsmiley/orgs","repos_url":"https://api.github.com/users/dsmiley/repos","events_url":"https://api.github.com/users/dsmiley/events{/privacy}","received_events_url":"https://api.github.com/users/dsmiley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-03T18:27:41Z","updated_at":"2016-12-25T00:10:38Z","closed_at":"2016-12-25T00:10:38Z","body":"I have a parameter that is annotated with \\@BeanParam to a class that has a bunch of fields in it.  This class has only getters, not setters, and it has a constructor that takes all parameters.  Those constructor parameters are annotated with \\@QueryParam, \\@Size, \\@ApiParam etc. Jersey is able to handle this fine but Swagger throws an exception:\n\n```\nException in thread \"main\" java.lang.IllegalArgumentException: Unrecognized Type: [null]\n    at com.fasterxml.jackson.databind.type.TypeFactory._fromAny(TypeFactory.java:1110)\n    at com.fasterxml.jackson.databind.type.TypeFactory.constructType(TypeFactory.java:563)\n    at io.swagger.jaxrs.ext.AbstractSwaggerExtension.constructType(AbstractSwaggerExtension.java:53)\n    at io.swagger.jaxrs.ext.AbstractSwaggerExtension.shouldIgnoreType(AbstractSwaggerExtension.java:45)\n    at io.swagger.jersey.SwaggerJersey2Jaxrs.extractParameters(SwaggerJersey2Jaxrs.java:40)\n    at io.swagger.jersey.SwaggerJersey2Jaxrs.extractParameters(SwaggerJersey2Jaxrs.java:82)\n    at io.swagger.jaxrs.Reader.getParameters(Reader.java:913)\n    at io.swagger.jaxrs.Reader.parseMethod(Reader.java:864)\n    at io.swagger.jaxrs.Reader.read(Reader.java:299)\n    at io.swagger.jaxrs.Reader.read(Reader.java:145)\n    at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:223)\n    at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:204)\n```\n\nI believe the bug is in io.swagger.jersey.SwaggerJersey2Jaxrs.extractParameters?\n\nFWIW my code is in Kotlin but that shouldn't matter.  I viewed the decompiled class to verify what it looked like.\n"}}
{"actor":{"display_login":"fehguy"}}