jentic-openapi-validator 1.0.0a33__py3-none-any.whl → 1.0.0a34__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.
- jentic/apitools/openapi/validator/core/diagnostics.py +4 -4
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/METADATA +4 -4
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/RECORD +7 -7
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/WHEEL +0 -0
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/entry_points.txt +0 -0
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/licenses/LICENSE +0 -0
- {jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/licenses/NOTICE +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from dataclasses import dataclass, field
|
|
2
2
|
from typing import TypeAlias
|
|
3
3
|
|
|
4
|
-
from lsprotocol.types import Diagnostic
|
|
4
|
+
from lsprotocol.types import Diagnostic, DiagnosticSeverity
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
__all__ = ["JenticDiagnostic", "ValidationResult", "DataFieldValue"]
|
|
@@ -61,7 +61,7 @@ class ValidationResult:
|
|
|
61
61
|
|
|
62
62
|
Attributes:
|
|
63
63
|
diagnostics: List of all diagnostics from validation
|
|
64
|
-
valid: True if no diagnostics were found, False otherwise (computed automatically)
|
|
64
|
+
valid: True if no Error-severity diagnostics were found, False otherwise (computed automatically)
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
67
|
diagnostics: list[JenticDiagnostic] = field(default_factory=list)
|
|
@@ -69,14 +69,14 @@ class ValidationResult:
|
|
|
69
69
|
|
|
70
70
|
def __post_init__(self):
|
|
71
71
|
"""Compute the valid attribute after initialization."""
|
|
72
|
-
self.valid =
|
|
72
|
+
self.valid = not any(d.severity == DiagnosticSeverity.Error for d in self.diagnostics)
|
|
73
73
|
|
|
74
74
|
def __bool__(self) -> bool:
|
|
75
75
|
"""
|
|
76
76
|
Allow ValidationResult to be used in boolean context.
|
|
77
77
|
|
|
78
78
|
Returns:
|
|
79
|
-
True if validation passed (no diagnostics), False otherwise
|
|
79
|
+
True if validation passed (no Error-severity diagnostics), False otherwise
|
|
80
80
|
|
|
81
81
|
Example:
|
|
82
82
|
>>> result = validator.validate(document)
|
{jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/METADATA
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jentic-openapi-validator
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a34
|
|
4
4
|
Summary: Jentic OpenAPI Validator
|
|
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-parser~=1.0.
|
|
10
|
+
Requires-Dist: jentic-openapi-parser~=1.0.0a34
|
|
11
11
|
Requires-Dist: openapi-spec-validator~=0.7.2
|
|
12
12
|
Requires-Dist: lsprotocol~=2025.0.0
|
|
13
|
-
Requires-Dist: jentic-openapi-validator-redocly~=1.0.
|
|
14
|
-
Requires-Dist: jentic-openapi-validator-spectral~=1.0.
|
|
13
|
+
Requires-Dist: jentic-openapi-validator-redocly~=1.0.0a34 ; extra == 'redocly'
|
|
14
|
+
Requires-Dist: jentic-openapi-validator-spectral~=1.0.0a34 ; extra == 'spectral'
|
|
15
15
|
Requires-Python: >=3.11
|
|
16
16
|
Project-URL: Homepage, https://github.com/jentic/jentic-openapi-tools
|
|
17
17
|
Provides-Extra: redocly
|
{jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/RECORD
RENAMED
|
@@ -7,12 +7,12 @@ jentic/apitools/openapi/validator/backends/default/rules/structural.py,sha256=Fr
|
|
|
7
7
|
jentic/apitools/openapi/validator/backends/openapi_spec.py,sha256=Lib0mbs9ZURw02PnhblBk403cYduRArVyOTeCBPALGw,5296
|
|
8
8
|
jentic/apitools/openapi/validator/backends/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
jentic/apitools/openapi/validator/core/__init__.py,sha256=OOJD1Z8Zn8ya537_62xaAhdHypy8J8iFHvx0U0DpP5o,181
|
|
10
|
-
jentic/apitools/openapi/validator/core/diagnostics.py,sha256=
|
|
10
|
+
jentic/apitools/openapi/validator/core/diagnostics.py,sha256=RxDCZjt11pv00e8GIwstxPJgL8RwwgRyInxNYVj34Ho,3330
|
|
11
11
|
jentic/apitools/openapi/validator/core/openapi_validator.py,sha256=5X5VmPhseDhw2uFlABrwU0jA1nWAnoWl4YfsZxdE1nU,10119
|
|
12
12
|
jentic/apitools/openapi/validator/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
jentic_openapi_validator-1.0.
|
|
14
|
-
jentic_openapi_validator-1.0.
|
|
15
|
-
jentic_openapi_validator-1.0.
|
|
16
|
-
jentic_openapi_validator-1.0.
|
|
17
|
-
jentic_openapi_validator-1.0.
|
|
18
|
-
jentic_openapi_validator-1.0.
|
|
13
|
+
jentic_openapi_validator-1.0.0a34.dist-info/licenses/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
14
|
+
jentic_openapi_validator-1.0.0a34.dist-info/licenses/NOTICE,sha256=pAOGW-rGw9KNc2cuuLWZkfx0GSTV4TicbgBKZSLPMIs,168
|
|
15
|
+
jentic_openapi_validator-1.0.0a34.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
16
|
+
jentic_openapi_validator-1.0.0a34.dist-info/entry_points.txt,sha256=zIjHHOn2NeSIYzj-HvxuXZY74uRXJOE0Vi4aFV09gjg,237
|
|
17
|
+
jentic_openapi_validator-1.0.0a34.dist-info/METADATA,sha256=OwhXUEYuysv46hN9haL6dNEEFqYLPY_9INd0QTjQc6o,8314
|
|
18
|
+
jentic_openapi_validator-1.0.0a34.dist-info/RECORD,,
|
{jentic_openapi_validator-1.0.0a33.dist-info → jentic_openapi_validator-1.0.0a34.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|