json-structure 0.7.0__tar.gz → 0.8.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.
- {json_structure-0.7.0 → json_structure-0.8.2}/PKG-INFO +2 -2
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/_version.py +2 -2
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/schema_validator.py +9 -1
- {json_structure-0.7.0 → json_structure-0.8.2}/.gitignore +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/README.md +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/pyproject.toml +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/__init__.py +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/error_codes.py +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/instance_validator.py +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/json_source_locator.py +0 -0
- {json_structure-0.7.0 → json_structure-0.8.2}/src/json_structure/schema_exporter.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: json-structure
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Validators for JSON Structure schemas and instances
|
|
5
5
|
Project-URL: Homepage, https://json-structure.org
|
|
6
6
|
Project-URL: Documentation, https://github.com/json-structure/sdk
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.
|
|
22
|
-
__version_tuple__ = version_tuple = (0,
|
|
21
|
+
__version__ = version = '0.8.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 8, 2)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -78,7 +78,7 @@ class JSONStructureSchemaCoreValidator:
|
|
|
78
78
|
KNOWN_EXTENSIONS = {
|
|
79
79
|
"JSONStructureImport", "JSONStructureAlternateNames", "JSONStructureUnits",
|
|
80
80
|
"JSONStructureConditionalComposition", "JSONStructureValidation",
|
|
81
|
-
"JSONStructureRelations"
|
|
81
|
+
"JSONStructureRelations", "JSONStructureSemanticAnnotations"
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
def __init__(self, allow_dollar=False, allow_import=False, import_map=None, extended=False, external_schemas=None, warn_on_unused_extension_keywords=True, max_validation_depth=64):
|
|
@@ -251,6 +251,14 @@ class JSONStructureSchemaCoreValidator:
|
|
|
251
251
|
if "validation" in schema_uri:
|
|
252
252
|
self.enabled_extensions.add("JSONStructureConditionalComposition")
|
|
253
253
|
self.enabled_extensions.add("JSONStructureValidation")
|
|
254
|
+
|
|
255
|
+
# The semantic-annotations meta-schema enables the extensions it declares in $uses
|
|
256
|
+
if "semantic-annotations" in schema_uri:
|
|
257
|
+
self.enabled_extensions.add("JSONStructureUnits")
|
|
258
|
+
self.enabled_extensions.add("JSONStructureImport")
|
|
259
|
+
self.enabled_extensions.add("JSONStructureConditionalComposition")
|
|
260
|
+
self.enabled_extensions.add("JSONStructureValidation")
|
|
261
|
+
self.enabled_extensions.add("JSONStructureSemanticAnnotations")
|
|
254
262
|
|
|
255
263
|
# Check $uses array
|
|
256
264
|
if isinstance(uses, list):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|