jentic-openapi-transformer-redocly 1.0.0a10__py3-none-any.whl → 1.0.0a12__py3-none-any.whl

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.
@@ -4,12 +4,10 @@ import tempfile
4
4
  from collections.abc import Sequence
5
5
  from pathlib import Path
6
6
  from typing import Literal
7
- from urllib.parse import urlparse
8
- from urllib.request import url2pathname
9
7
 
10
8
  from jentic.apitools.openapi.common.path_security import validate_path
11
9
  from jentic.apitools.openapi.common.subproc import run_subprocess
12
- from jentic.apitools.openapi.common.uri import is_path
10
+ from jentic.apitools.openapi.common.uri import file_uri_to_path, is_file_uri, is_path
13
11
  from jentic.apitools.openapi.transformer.bundler.backends.base import BaseBundlerBackend
14
12
 
15
13
 
@@ -79,10 +77,7 @@ class RedoclyBundlerBackend(BaseBundlerBackend):
79
77
  raise TypeError(f"Unsupported document type: {type(document)!r}")
80
78
 
81
79
  def _bundle_uri(self, document: str, base_url: str | None = None) -> str:
82
- parsed_doc_url = urlparse(document)
83
- doc_path = (
84
- url2pathname(parsed_doc_url.path) if parsed_doc_url.scheme == "file" else document
85
- )
80
+ doc_path = file_uri_to_path(document) if is_file_uri(document) else document
86
81
 
87
82
  # Validate document path if it's a filesystem path (skip non-path URIs like HTTP(S))
88
83
  validated_doc_path = (
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jentic-openapi-transformer-redocly
3
- Version: 1.0.0a10
3
+ Version: 1.0.0a12
4
4
  Summary: Jentic OpenAPI Redocly Transformer Backend
5
5
  Author: Jentic
6
6
  Author-email: Jentic <hello@jentic.com>
7
7
  License-Expression: Apache-2.0
8
8
  License-File: LICENSE
9
9
  License-File: NOTICE
10
- Requires-Dist: jentic-openapi-common~=1.0.0a10
11
- Requires-Dist: jentic-openapi-transformer~=1.0.0a10
10
+ Requires-Dist: jentic-openapi-common~=1.0.0a12
11
+ Requires-Dist: jentic-openapi-transformer~=1.0.0a12
12
12
  Requires-Python: >=3.11
13
13
  Project-URL: Homepage, https://github.com/jentic/jentic-openapi-tools
14
14
  Description-Content-Type: text/markdown
@@ -0,0 +1,8 @@
1
+ jentic/apitools/openapi/transformer/bundler/backends/redocly/__init__.py,sha256=94vmE9q28hJ1yaGAkUp7fuwpjg3qE86z1VhAzkrGaqA,5989
2
+ jentic/apitools/openapi/transformer/bundler/backends/redocly/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
4
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
5
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
6
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/entry_points.txt,sha256=X61t3p9y4Sco-tJPkoNj3Px_6uii-xbYSzWI45N5Akg,149
7
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/METADATA,sha256=S0vdgpmJSPCSqoH0xsRtlm29_WIIYPcQxveL-PGG1Y8,5176
8
+ jentic_openapi_transformer_redocly-1.0.0a12.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- jentic/apitools/openapi/transformer/bundler/backends/redocly/__init__.py,sha256=OKArtOyRI0qKq0ViBmnFL8VPeWjUUAHk7iMAkBRTpuU,6117
2
- jentic/apitools/openapi/transformer/bundler/backends/redocly/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
4
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
5
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
6
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/entry_points.txt,sha256=X61t3p9y4Sco-tJPkoNj3Px_6uii-xbYSzWI45N5Akg,149
7
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/METADATA,sha256=dPTJtVJDrU2B9Sgiy7dtrKFCIqFoLsjSoY2aXLBI1mE,5176
8
- jentic_openapi_transformer_redocly-1.0.0a10.dist-info/RECORD,,