jsonstat-validator 0.1.5__tar.gz → 0.1.6__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.
Files changed (17) hide show
  1. {jsonstat_validator-0.1.5/jsonstat_validator.egg-info → jsonstat_validator-0.1.6}/PKG-INFO +1 -1
  2. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator/__init__.py +1 -1
  3. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator/validator.py +6 -0
  4. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6/jsonstat_validator.egg-info}/PKG-INFO +1 -1
  5. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/pyproject.toml +1 -1
  6. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/LICENSE +0 -0
  7. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/MANIFEST.in +0 -0
  8. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/README.md +0 -0
  9. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/SOURCES.txt +0 -0
  10. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/dependency_links.txt +0 -0
  11. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/requires.txt +0 -0
  12. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/top_level.txt +0 -0
  13. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/requirements.txt +0 -0
  14. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/setup.cfg +0 -0
  15. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/setup.py +0 -0
  16. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/tests/test_custom.py +0 -0
  17. {jsonstat_validator-0.1.5 → jsonstat_validator-0.1.6}/tests/test_official_samples.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonstat-validator
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A Python validator for the JSON-stat 2.0 standard format, based on Pydantic.
5
5
  Author-email: Ahmed Hassan <ahmedhassan.ahmed@fao.org>
6
6
  License: # MIT License
@@ -22,7 +22,7 @@ from jsonstat_validator.validator import (
22
22
  validate_jsonstat,
23
23
  )
24
24
 
25
- __version__ = "0.1.5"
25
+ __version__ = "0.1.6"
26
26
  __all__ = [
27
27
  "Dataset",
28
28
  "Dimension",
@@ -707,6 +707,12 @@ class Collection(JSONStatBaseModel):
707
707
  "(datasets, dimensions, collections)."
708
708
  ),
709
709
  )
710
+ extension: Optional[Dict[str, Any]] = Field(
711
+ default=None,
712
+ description="Extension allows JSON-stat to be extended for particular needs. "
713
+ "Providers are free to define where they include this property and "
714
+ "what children are allowed in each case.",
715
+ )
710
716
 
711
717
  @field_validator("updated", mode="after")
712
718
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jsonstat-validator
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A Python validator for the JSON-stat 2.0 standard format, based on Pydantic.
5
5
  Author-email: Ahmed Hassan <ahmedhassan.ahmed@fao.org>
6
6
  License: # MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jsonstat-validator"
7
- version = "0.1.5"
7
+ version = "0.1.6"
8
8
  description = "A Python validator for the JSON-stat 2.0 standard format, based on Pydantic."
9
9
  readme = "README.md"
10
10
  authors = [