jentic-openapi-transformer-redocly 1.0.0a10__tar.gz → 1.0.0a12__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.
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/PKG-INFO +3 -3
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/pyproject.toml +3 -3
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/src/jentic/apitools/openapi/transformer/bundler/backends/redocly/__init__.py +2 -7
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/LICENSE +0 -0
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/NOTICE +0 -0
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/README.md +0 -0
- {jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/src/jentic/apitools/openapi/transformer/bundler/backends/redocly/py.typed +0 -0
{jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/PKG-INFO
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jentic-openapi-transformer-redocly
|
|
3
|
-
Version: 1.0.
|
|
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.
|
|
11
|
-
Requires-Dist: jentic-openapi-transformer~=1.0.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "jentic-openapi-transformer-redocly"
|
|
3
|
-
version = "1.0.0-alpha.
|
|
3
|
+
version = "1.0.0-alpha.12"
|
|
4
4
|
description = "Jentic OpenAPI Redocly Transformer Backend"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Jentic", email = "hello@jentic.com" }]
|
|
@@ -8,8 +8,8 @@ license = "Apache-2.0"
|
|
|
8
8
|
license-files = ["LICENSE", "NOTICE"]
|
|
9
9
|
requires-python = ">=3.11"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"jentic-openapi-common~=1.0.0-alpha.
|
|
12
|
-
"jentic-openapi-transformer~=1.0.0-alpha.
|
|
11
|
+
"jentic-openapi-common~=1.0.0-alpha.12",
|
|
12
|
+
"jentic-openapi-transformer~=1.0.0-alpha.12"
|
|
13
13
|
]
|
|
14
14
|
|
|
15
15
|
[project.urls]
|
|
@@ -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
|
-
|
|
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 = (
|
{jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/LICENSE
RENAMED
|
File without changes
|
{jentic_openapi_transformer_redocly-1.0.0a10 → jentic_openapi_transformer_redocly-1.0.0a12}/NOTICE
RENAMED
|
File without changes
|
|
File without changes
|