sdcvalidator 4.6.0__tar.gz → 4.6.2__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.
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/PKG-INFO +1 -1
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/pyproject.toml +1 -1
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/__init__.py +1 -1
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/mcp_server.py +1 -1
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/PKG-INFO +1 -1
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/SOURCES.txt +1 -0
- sdcvalidator-4.6.2/tests/test_conformance.py +20 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/LICENSE +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/README.md +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/setup.cfg +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/cli.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/constants.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/converters.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/error_classifier.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/error_mapper.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/exceptions.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/instance_modifier.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/schema_checker.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/validator.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator/xsd11_restriction.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/dependency_links.txt +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/entry_points.txt +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/requires.txt +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/src/sdcvalidator.egg-info/top_level.txt +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_converters.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_error_classifier.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_error_mapper.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_instance_modifier.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_mcp_server.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_recovery.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_recovery_460.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_registry_launch.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_schema_checker.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_validator.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_xsd11_restriction.py +0 -0
- {sdcvalidator-4.6.0 → sdcvalidator-4.6.2}/tests/test_xsi_type.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sdcvalidator"
|
|
7
|
-
version = "4.6.
|
|
7
|
+
version = "4.6.2"
|
|
8
8
|
description = "SDC4 structural validator with ExceptionalValue recovery — thin wrapper over xmlschema"
|
|
9
9
|
license = "Apache-2.0"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -14,7 +14,7 @@ Thin wrapper over xmlschema with two-tier error classification and the SDC4
|
|
|
14
14
|
"quarantine-and-tag" recovery pattern (ISO 21090 ExceptionalValues).
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
__version__ = "4.6.
|
|
17
|
+
__version__ = "4.6.2"
|
|
18
18
|
|
|
19
19
|
# etree_tostring is re-exported from xmlschema so callers can serialize the
|
|
20
20
|
# ElementTree returned by validate_with_recovery() without importing xmlschema
|
|
@@ -36,7 +36,7 @@ from sdcvalidator.schema_checker import validate_sdc4_schema_compliance
|
|
|
36
36
|
JSONRPC_VERSION = "2.0"
|
|
37
37
|
MCP_PROTOCOL_VERSION = "2024-11-05"
|
|
38
38
|
SERVER_NAME = "sdcvalidator"
|
|
39
|
-
SERVER_VERSION = "4.6.
|
|
39
|
+
SERVER_VERSION = "4.6.2"
|
|
40
40
|
|
|
41
41
|
# Validator cache: schema_path -> SDC4Validator
|
|
42
42
|
_validators: dict[str, SDC4Validator] = {}
|
|
@@ -19,6 +19,7 @@ src/sdcvalidator.egg-info/dependency_links.txt
|
|
|
19
19
|
src/sdcvalidator.egg-info/entry_points.txt
|
|
20
20
|
src/sdcvalidator.egg-info/requires.txt
|
|
21
21
|
src/sdcvalidator.egg-info/top_level.txt
|
|
22
|
+
tests/test_conformance.py
|
|
22
23
|
tests/test_converters.py
|
|
23
24
|
tests/test_error_classifier.py
|
|
24
25
|
tests/test_error_mapper.py
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The conformance suite (conformance/): sdcvalidator must still give every committed expected result.
|
|
3
|
+
|
|
4
|
+
A change here is a change to what "valid" means for every implementation of SDC4 validation, so a
|
|
5
|
+
failing case is not fixed by regenerating: regenerate only when the change is intended, record it in
|
|
6
|
+
the CHANGELOG, and give the other implementations the new expectations to meet.
|
|
7
|
+
"""
|
|
8
|
+
import subprocess
|
|
9
|
+
import sys
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def test_sdcvalidator_gives_every_expected_result():
|
|
16
|
+
run = subprocess.run(
|
|
17
|
+
[sys.executable, str(ROOT / 'conformance' / 'tools' / 'expected.py'), '--check'],
|
|
18
|
+
capture_output=True, text=True,
|
|
19
|
+
)
|
|
20
|
+
assert run.returncode == 0, run.stdout + run.stderr
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|