question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: openapi.servers is not iterable

See original GitHub issue

I’m not sure what this means.

$ swagger-cli validate ../openshift-openapi-spec.json
../openshift-openapi-spec.json is valid

Detailed Description

TypeError: openapi.servers is not iterable
    at processPaths (/Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:863:56)
    at main (/Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:1059:5)
    at /Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:1366:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
openapi.servers is not iterable
TypeError: openapi.servers is not iterable
    at processPaths (/Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:863:56)
    at main (/Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:1059:5)
    at /Users/jasonb/Self/work/apis/node_modules/widdershins/node_modules/swagger2openapi/index.js:1366:13
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MikeRalphsoncommented, May 31, 2019

This code has already been fixed in swagger2openapi, and so just waiting on the next release of widdershins to pull it in.

1reaction
MikeRalphsoncommented, May 29, 2019

Can you send me a link or a gist of the document you’re trying to validate?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - "'NoneType' object is not iterable" Error When Testing ...
No matter which generated class I attempt to invoke, I always get this error: TypeError: 'NoneType' object is not iterable.
Read more >
'NoneType' object is not iterable"" - Rasa Open Source
hi,. I'm using rasa as docker image in an OpenShift environment. the problem: training via http api aborts with the following message:
Read more >
tiangolo/fastapi - Gitter
The error that is returned is ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')].
Read more >
The Flask object with some web API support. - APIFlask
The servers information of the API (openapi.servers), accepts multiple server dicts. ... If not set, the blueprint names will be used as tags....
Read more >
Setting Up Swagger to API Test In a JavaScript Application
Spring Boot makes Swagger APIs look easy, Node.js not so much. ... the meaning of your code in YAML complying to the OpenAPI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found