TypeError: openapi.servers is not iterable
See original GitHub issueI’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:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This code has already been fixed in swagger2openapi, and so just waiting on the next release of widdershins to pull it in.
Can you send me a link or a gist of the document you’re trying to validate?