openapi-httpx-client 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/PKG-INFO +1 -1
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/PKG-INFO +1 -1
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapiclient/client.py +2 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/setup.py +1 -1
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/README.md +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/SOURCES.txt +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/dependency_links.txt +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/requires.txt +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/top_level.txt +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapiclient/__init__.py +0 -0
- {openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/setup.cfg +0 -0
|
@@ -101,6 +101,8 @@ class OpenAPIClient:
|
|
|
101
101
|
content_type = response.headers.get('Content-Type', '')
|
|
102
102
|
if 'yaml' in content_type or 'yml' in content_type:
|
|
103
103
|
self.definition = yaml.safe_load(response.text)
|
|
104
|
+
elif self.definition_source.endswith('.yaml') or self.definition_source.endswith('.yml'):
|
|
105
|
+
self.definition = yaml.safe_load(response.text)
|
|
104
106
|
else:
|
|
105
107
|
self.definition = response.json()
|
|
106
108
|
else:
|
|
File without changes
|
{openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{openapi-httpx-client-0.3.0 → openapi-httpx-client-0.3.1}/openapi_httpx_client.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|