jentic-openapi-validator-spectral 1.0.0a10__py3-none-any.whl → 1.0.0a11__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 lsprotocol.types import DiagnosticSeverity, Position, Range
12
10
 
@@ -16,7 +14,7 @@ from jentic.apitools.openapi.common.subproc import (
16
14
  SubprocessExecutionResult,
17
15
  run_subprocess,
18
16
  )
19
- from jentic.apitools.openapi.common.uri import is_path
17
+ from jentic.apitools.openapi.common.uri import file_uri_to_path, is_file_uri, is_path
20
18
  from jentic.apitools.openapi.validator.backends.base import BaseValidatorBackend
21
19
  from jentic.apitools.openapi.validator.core import JenticDiagnostic, ValidationResult
22
20
 
@@ -112,10 +110,7 @@ class SpectralValidatorBackend(BaseValidatorBackend):
112
110
  result: SubprocessExecutionResult | None = None
113
111
 
114
112
  try:
115
- parsed_doc_url = urlparse(document)
116
- doc_path = (
117
- url2pathname(parsed_doc_url.path) if parsed_doc_url.scheme == "file" else document
118
- )
113
+ doc_path = file_uri_to_path(document) if is_file_uri(document) else document
119
114
 
120
115
  # Validate document path if it's a filesystem path (skip non-path URIs like HTTP(S))
121
116
  validated_doc_path = (
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jentic-openapi-validator-spectral
3
- Version: 1.0.0a10
3
+ Version: 1.0.0a11
4
4
  Summary: Jentic OpenAPI Spectral 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.0a11
11
+ Requires-Dist: jentic-openapi-validator~=1.0.0a11
12
12
  Requires-Dist: lsprotocol~=2025.0.0
13
13
  Requires-Python: >=3.11
14
14
  Project-URL: Homepage, https://github.com/jentic/jentic-openapi-tools
@@ -1,9 +1,9 @@
1
- jentic/apitools/openapi/validator/backends/spectral/__init__.py,sha256=NJu1BW8xEDEtRg6-zLOn8RORffK0siDcmmHrg655oyc,9944
1
+ jentic/apitools/openapi/validator/backends/spectral/__init__.py,sha256=1Bf9kPApIFor1zggfWbvl_8IaiYUpEL9KdWEV1mB3_k,9804
2
2
  jentic/apitools/openapi/validator/backends/spectral/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  jentic/apitools/openapi/validator/backends/spectral/rulesets/spectral.yaml,sha256=0Xpn8s3gmnFSyJuoHG6DOF-DUTi_MSICU7w2NmVx1EI,50
4
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
5
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
6
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
7
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/entry_points.txt,sha256=wX6fY9EUdVYGKuiUy_f1G7qDixRSmXjJu7x61kD-Kr4,134
8
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/METADATA,sha256=N5RVroVXom54DszgmmGsP4l2dSmeTPq81vpnpfDmUU0,8730
9
- jentic_openapi_validator_spectral-1.0.0a10.dist-info/RECORD,,
4
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
5
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
6
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
7
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/entry_points.txt,sha256=wX6fY9EUdVYGKuiUy_f1G7qDixRSmXjJu7x61kD-Kr4,134
8
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/METADATA,sha256=n4E1o953Me5WBFd2Od-DZuOxXX4Hf9fDFFb8NY1aspY,8730
9
+ jentic_openapi_validator_spectral-1.0.0a11.dist-info/RECORD,,