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

Nil pointer dereference exception while validate an swagger without path #52

Closed
lixingwang opened this issue Aug 31, 2015 · 0 comments
Closed

Comments

@lixingwang
Copy link

I want to use go-swagger validation feature so I defined an very simple swagger without paths, see the swagger file:

"swagger" : "2.0",
  "info" : {
    "version" : "1.0",
    "title" : "Hello World",
    "description" : "Simple Hello World API, with Get operation to one resource path, no request parameters defined"
  },
  "host" : "api.tibco.com",
  "basePath" : "/v1",
  "schemes" : [ "http" ]
}

Then it throw nil point exception, we hope it might return error with "Invalid swagger content, please provide paths....."

Hope this can be fixs.

Thanks,
Tracy

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

1 participant