Skip to content
New issue

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 ui stuck at "fetching resource list:" (Uncaught TypeError: Cannot read property 'length' of null) #69

Open
saurabhsyzhi opened this issue Sep 1, 2015 · 1 comment

Comments

@saurabhsyzhi
Copy link

I am trying to integrate swagger in the application and swagger ui is stuck at "fetching resource list: /api/swagger.json"

F12 on the browser indicates the below issue @ swagger-client.js line no. 626

Uncaught TypeError: Cannot read property 'length' of null

swagger-client.js: line no. 626
if(typeof param['enum'] !== 'undefined') {

I am using dropwizard-swagger 0.7 version with swagger-core / swagger-annotation / swagger-jaxrs / swagger-jersey2-jaxrs version of 1.5.1-M2.

I have tried to direct access the /api/swagger.json and I think the problem seems to be below "null" parameters returned in the json.

Any thoughts on the issue.

parameters: [
{
name: "type",
in: "query",
description: null,
required: false,
type: "string",
items: null,
collectionFormat: null,
default: null,
pattern: null,
format: null,
enum: null
}

@daisycao111
Copy link

I have this exact issue. @saurabhsyzhi were you able to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants