You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from swaggerpy.client import SwaggerClient
from swaggerpy.http_client import SynchronousHttpClient
http_client = SynchronousHttpClient()
client = ari = SwaggerClient("http://petstore.swagger.wordnik.com/api/api-docs",http_client=http_client)
Here is the error:
File "/home/jfinger/Desktop/swagger-py/swaggerpy/client.py", line 178, in __init__
self.api_docs = loader.load_resource_listing(url_or_resource)
File "/home/jfinger/Desktop/swagger-py/swaggerpy/swagger_model.py", line 170, in load_resource_listing
self.load_api_declaration(base_url, api)
File "/home/jfinger/Desktop/swagger-py/swaggerpy/swagger_model.py", line 187, in load_api_declaration
api_dict['url'] = urlparse.urljoin(base_url + '/', path.strip('/'))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Looks like this is because the loader is looking for something called 'basePath' in the Json.
The text was updated successfully, but these errors were encountered:
Here is my code:
Here is the error:
Looks like this is because the loader is looking for something called 'basePath' in the Json.
The text was updated successfully, but these errors were encountered: