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
Traceback (most recent call last):
File ".\swagger_api.py", line 12, in <module>
response = client.request(req_and_resp)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyswagger\contrib\client\requests.py", line 39, in request
req.prepare(scheme=self.prepare_schemes(req), handle_files=False)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyswagger\core.py", line 568, in prepare_schemes
raise ValueError('No schemes available: {0}'.format(req.schemes))
ValueError: No schemes available: ['file']
In the swagger provided there is no scheme specified, so it seems like the standard is followed:
If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.
From looking around it seems like I should be able to specify a scheme to use via 'url_scheme' in opt. It seems like that selection isn't being honored.
If I am doing something wrong, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
When using a URI to specify a local swagger file on windows, client.request() throws a ValueError.
Code Run:
The reported error:
In the swagger provided there is no scheme specified, so it seems like the standard is followed:
From looking around it seems like I should be able to specify a scheme to use via 'url_scheme' in opt. It seems like that selection isn't being honored.
If I am doing something wrong, any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: