2.0 Spec states that required may be missing and hence the use of unwrapped primitive Boolean as return value of io.swagger.models.apideclaration.Parameter#getParameter. Problem is that com.wordnik.swagger.models.parameters.Parameter takes in primitive and autoboxing fails due to null being present.
java.lang.NullPointerException
at io.swagger.parser.SwaggerCompatConverter.convertParameter(SwaggerCompatConverter.java:183)
at io.swagger.parser.SwaggerCompatConverter.convertOperation(SwaggerCompatConverter.java:314)
at io.swagger.parser.SwaggerCompatConverter.convert(SwaggerCompatConverter.java:454)
at io.swagger.parser.SwaggerCompatConverter.read(SwaggerCompatConverter.java:111)
at io.swagger.parser.SwaggerParser.read(SwaggerParser.java:34)
at com.wordnik.swagger.codegen.Codegen.main(Codegen.java:87)
...
swagger-codegen hides this and other exceptions as well (issue swagger-api/swagger-codegen#448)
2.0 Spec states that required may be missing and hence the use of unwrapped primitive Boolean as return value of
io.swagger.models.apideclaration.Parameter#getParameter
. Problem is that com.wordnik.swagger.models.parameters.Parameter takes in primitive and autoboxing fails due to null being present.swagger-codegen
hides this and other exceptions as well (issue swagger-api/swagger-codegen#448)