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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastspec
3
- Version: 0.2.6
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
@@ -4,4 +4,4 @@ Modules:
4
4
 
5
5
  - `fastspec.gql`: Build GraphQL queries by field-checked attribute chaining, reuse distilled schemas, and combine queries into batched requests"""
6
6
 
7
- __version__ = "0.2.6"
7
+ __version__ = "0.2.7"
@@ -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
- "Resolve a `$ref` object and merge local overrides when present."
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.6
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