jentic-openapi-validator-spectral 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_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/PKG-INFO +3 -3
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/pyproject.toml +3 -3
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/src/jentic/apitools/openapi/validator/backends/spectral/__init__.py +2 -7
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/LICENSE +0 -0
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/NOTICE +0 -0
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/README.md +0 -0
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/src/jentic/apitools/openapi/validator/backends/spectral/py.typed +0 -0
- {jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/src/jentic/apitools/openapi/validator/backends/spectral/rulesets/spectral.yaml +0 -0
{jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/PKG-INFO
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jentic-openapi-validator-spectral
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a12
|
|
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.
|
|
11
|
-
Requires-Dist: jentic-openapi-validator~=1.0.
|
|
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-Python: >=3.11
|
|
14
14
|
Project-URL: Homepage, https://github.com/jentic/jentic-openapi-tools
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "jentic-openapi-validator-spectral"
|
|
3
|
-
version = "1.0.0-alpha.
|
|
3
|
+
version = "1.0.0-alpha.12"
|
|
4
4
|
description = "Jentic OpenAPI Spectral Validator 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-validator~=1.0.0-alpha.
|
|
11
|
+
"jentic-openapi-common~=1.0.0-alpha.12",
|
|
12
|
+
"jentic-openapi-validator~=1.0.0-alpha.12",
|
|
13
13
|
"lsprotocol~=2025.0.0"
|
|
14
14
|
]
|
|
15
15
|
|
|
@@ -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
|
-
|
|
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 = (
|
{jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/LICENSE
RENAMED
|
File without changes
|
{jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/NOTICE
RENAMED
|
File without changes
|
{jentic_openapi_validator_spectral-1.0.0a10 → jentic_openapi_validator_spectral-1.0.0a12}/README.md
RENAMED
|
File without changes
|
|
File without changes
|