jentic-openapi-validator-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.
@@ -5,8 +5,6 @@ from collections.abc import Sequence
5
5
  from importlib.resources import as_file, files
6
6
  from pathlib import Path
7
7
  from typing import Literal
8
- from urllib.parse import urlparse
9
- from urllib.request import url2pathname
10
8
 
11
9
  from jsonpointer import JsonPointer
12
10
  from lsprotocol.types import DiagnosticSeverity, Position, Range
@@ -17,7 +15,7 @@ from jentic.apitools.openapi.common.subproc import (
17
15
  SubprocessExecutionResult,
18
16
  run_subprocess,
19
17
  )
20
- from jentic.apitools.openapi.common.uri import is_path
18
+ from jentic.apitools.openapi.common.uri import file_uri_to_path, is_file_uri, is_path
21
19
  from jentic.apitools.openapi.validator.backends.base import BaseValidatorBackend
22
20
  from jentic.apitools.openapi.validator.core import JenticDiagnostic, ValidationResult
23
21
 
@@ -111,10 +109,7 @@ class RedoclyValidatorBackend(BaseValidatorBackend):
111
109
  result: SubprocessExecutionResult | None = None
112
110
 
113
111
  try:
114
- parsed_doc_url = urlparse(document)
115
- doc_path = (
116
- url2pathname(parsed_doc_url.path) if parsed_doc_url.scheme == "file" else document
117
- )
112
+ doc_path = file_uri_to_path(document) if is_file_uri(document) else document
118
113
 
119
114
  # Validate document path if it's a filesystem path (skip non-path URIs like HTTP(S))
120
115
  validated_doc_path = (
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jentic-openapi-validator-redocly
3
- Version: 1.0.0a10
3
+ Version: 1.0.0a12
4
4
  Summary: Jentic OpenAPI Redocly Validator 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-validator~=1.0.0a10
10
+ Requires-Dist: jentic-openapi-common~=1.0.0a12
11
+ Requires-Dist: jentic-openapi-validator~=1.0.0a12
12
12
  Requires-Dist: lsprotocol~=2025.0.0
13
13
  Requires-Dist: jsonpointer~=3.0.0
14
14
  Requires-Python: >=3.11
@@ -1,9 +1,9 @@
1
- jentic/apitools/openapi/validator/backends/redocly/__init__.py,sha256=3u3D2BF7QTBf8CL8kpWykcj73zWOWz7CyQHhplQvfYE,9533
1
+ jentic/apitools/openapi/validator/backends/redocly/__init__.py,sha256=0khrYL30UAwjgkYQSG7NW0Fu0j_qkf5BSBB47OjsUeo,9393
2
2
  jentic/apitools/openapi/validator/backends/redocly/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  jentic/apitools/openapi/validator/backends/redocly/rulesets/redocly.yaml,sha256=4YWOtk4-uXmH7Im58adZJr-VR1mJG2bFaOR1DdF1cM8,30
4
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
5
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
6
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
7
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/entry_points.txt,sha256=wOFM-VNEwo-czDoLgOTePKT_bi0WXB9rDsb204dcFjs,131
8
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/METADATA,sha256=vAd51Wr39XfsDaK-ck9N4MLMk2bO60lU7WPa_9DDBrE,9107
9
- jentic_openapi_validator_redocly-1.0.0a10.dist-info/RECORD,,
4
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
5
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
6
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
7
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/entry_points.txt,sha256=wOFM-VNEwo-czDoLgOTePKT_bi0WXB9rDsb204dcFjs,131
8
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/METADATA,sha256=HpGTAb7yF3H3MtIEq5PW_ryAOHipZrXFGhaPCydm4Yg,9107
9
+ jentic_openapi_validator_redocly-1.0.0a12.dist-info/RECORD,,