App.load() assumes that url is a string, for requesting the OpenAPI.json:
|
:param str url: url of path of Swagger API definition |
However, these are cases where we need more configurability. For example, I've just encountered an OpenAPI endpoint that rejects the urllib UserAgent, so I would like to be able to provide a customised UserAgent via a Request instance, rather than simply a string.
App.load()assumes thaturlis a string, for requesting the OpenAPI.json:pyswagger/pyswagger/core.py
Line 264 in 333c4ca
However, these are cases where we need more configurability. For example, I've just encountered an OpenAPI endpoint that rejects the urllib UserAgent, so I would like to be able to provide a customised UserAgent via a
Requestinstance, rather than simply a string.