fastspec 0.2.6__tar.gz → 0.2.7__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.
- {fastspec-0.2.6 → fastspec-0.2.7}/PKG-INFO +1 -1
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec/__init__.py +1 -1
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec/spec.py +2 -1
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/PKG-INFO +1 -1
- {fastspec-0.2.6 → fastspec-0.2.7}/LICENSE +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/README.md +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec/_modidx.py +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec/gql.py +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec/oapi.py +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/SOURCES.txt +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/dependency_links.txt +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/entry_points.txt +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/requires.txt +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/fastspec.egg-info/top_level.txt +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/pyproject.toml +0 -0
- {fastspec-0.2.6 → fastspec-0.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastspec
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Dynamic OpenAPI, Discovery, and GraphQL spec client for Python — turn any API spec into a fully-typed async client with attribute chaining, streaming, and file uploads
|
|
5
5
|
Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -89,7 +89,8 @@ def _resolve_ref(ref, spec):
|
|
|
89
89
|
|
|
90
90
|
# %% ../nbs/03_spec.ipynb #25ba8bb1
|
|
91
91
|
def _resolve_obj(obj, spec):
|
|
92
|
-
"
|
|
92
|
+
"Normalize boolean schemas and resolve `$ref` with local overrides."
|
|
93
|
+
if isinstance(obj, bool): return {} if obj else {'not': {}}
|
|
93
94
|
if "$ref" not in obj: return obj
|
|
94
95
|
base = _resolve_ref(obj["$ref"], spec)
|
|
95
96
|
if len(obj) == 1: return base
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastspec
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Dynamic OpenAPI, Discovery, and GraphQL spec client for Python — turn any API spec into a fully-typed async client with attribute chaining, streaming, and file uploads
|
|
5
5
|
Author-email: Kerem Turgutlu <keremturgutlu@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|