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

Cannot convert undefined or null to object in getSuccessResponse #20

Closed
kirill-konshin opened this issue May 10, 2017 · 3 comments · Fixed by #21
Closed

Cannot convert undefined or null to object in getSuccessResponse #20

kirill-konshin opened this issue May 10, 2017 · 3 comments · Fixed by #21

Comments

@kirill-konshin
Copy link
Contributor

Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at getSuccessResponse (/xxx/node_modules/swagger-to-graphql/lib/swagger.js:21:10)

Swagger-to-graphql version is 1.0.5.

The schema that I have used: https://raw.githubusercontent.com/tylerlong/rc-codegen/master/common/swagger.json

The schema has been validated with https://github.com/Yelp/swagger_spec_validator.

@alexpit
Copy link

alexpit commented May 12, 2017

Looks like a duplicate of #15

@alexpit
Copy link

alexpit commented May 12, 2017

It seems to be a failure at precisely the same code line swagger.js:21:10, so unless you describe what different spec assumption was made (different from "there cannot be any parameters under a path"), it's not entirely clear how this issue is different.

@kirill-konshin
Copy link
Contributor Author

Pls disregard my previous comment, I was looking at a different bug #18... Yes, looks like this issue is a duplicate.

sibelius added a commit to sibelius/swagger-to-graphql that referenced this issue May 31, 2017
@yarax yarax closed this as completed in #21 Jun 14, 2017
steverice added a commit to steverice/swagger-to-graphql that referenced this issue Nov 24, 2019
This check was added in 601ac79 to fix yarax#20 and fix yarax#15, but was removed in 21a3735.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants