ryankennedy / swagger-jaxrs-doclet

Apache License 2.0
87 stars 136 forks source link

Uncaught TypeError: Object [..] has no method 'getMockSignature' swagger.js:349 #57

Open jakub-bochenski opened 11 years ago

jakub-bochenski commented 11 years ago

I tried generating the swagger documentation with both 0.2 and 0.3-SNAPSHOT.

I always get:

Uncaught TypeError: Object function Object() { [native code] } has no method 'getMockSignature' swagger.js:349 SwaggerModel.getMockSignature swagger.js:349 SwaggerModel.getMockSignature swagger.js:349 SwaggerModel.getMockSignature swagger.js:349 SwaggerOperation.getSignature swagger.js:533 SwaggerOperation swagger.js:482 SwaggerResource.addOperations swagger.js:272 (anonymous function) swagger.js:230 k jquery-1.8.0.min.js:2 l.fireWith jquery-1.8.0.min.js:2 y jquery-1.8.0.min.js:2 d jquery-1.8.0.min.js:2

bleshik commented 11 years ago

I got the same error. It is connected with generics if I'm right.

machaba commented 10 years ago

I get the same issue. In my case, the JAX-RS method returns a model that uses generics, so I agree that it is probably connected with generics.