jsonstat-validator 0.1.4__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.4/jsonstat_validator.egg-info → jsonstat_validator-0.1.6}/PKG-INFO +3 -2
  2. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator/__init__.py +1 -1
  3. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator/validator.py +7 -0
  4. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6/jsonstat_validator.egg-info}/PKG-INFO +3 -2
  5. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/pyproject.toml +1 -1
  6. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/LICENSE +0 -0
  7. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/MANIFEST.in +0 -0
  8. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/README.md +0 -0
  9. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/SOURCES.txt +0 -0
  10. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/dependency_links.txt +0 -0
  11. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/requires.txt +0 -0
  12. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/top_level.txt +0 -0
  13. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/requirements.txt +0 -0
  14. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/setup.cfg +0 -0
  15. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/setup.py +0 -0
  16. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/tests/test_custom.py +0 -0
  17. {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/tests/test_official_samples.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: jsonstat-validator
3
- Version: 0.1.4
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
@@ -50,6 +50,7 @@ Requires-Dist: twine>=4.0.0; extra == "dev"
50
50
  Requires-Dist: black>=23.0.0; extra == "dev"
51
51
  Requires-Dist: flake8>=6.0.0; extra == "dev"
52
52
  Requires-Dist: isort>=5.12.0; extra == "dev"
53
+ Dynamic: license-file
53
54
 
54
55
  # JSON-stat Validator
55
56
 
@@ -22,7 +22,7 @@ from jsonstat_validator.validator import (
22
22
  validate_jsonstat,
23
23
  )
24
24
 
25
- __version__ = "0.1.1"
25
+ __version__ = "0.1.6"
26
26
  __all__ = [
27
27
  "Dataset",
28
28
  "Dimension",
@@ -250,6 +250,7 @@ class Link(JSONStatBaseModel):
250
250
  href: Optional[AnyUrl] = Field(default=None, description="It specifies a URL.")
251
251
  class_: Optional[Literal["dataset", "dimension", "collection"]] = Field(
252
252
  default=None,
253
+ alias="class",
253
254
  description=(
254
255
  "It describes the class of the resource referenced "
255
256
  "in the link. Not required when the resource referenced "
@@ -706,6 +707,12 @@ class Collection(JSONStatBaseModel):
706
707
  "(datasets, dimensions, collections)."
707
708
  ),
708
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
+ )
709
716
 
710
717
  @field_validator("updated", mode="after")
711
718
  @classmethod
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: jsonstat-validator
3
- Version: 0.1.4
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
@@ -50,6 +50,7 @@ Requires-Dist: twine>=4.0.0; extra == "dev"
50
50
  Requires-Dist: black>=23.0.0; extra == "dev"
51
51
  Requires-Dist: flake8>=6.0.0; extra == "dev"
52
52
  Requires-Dist: isort>=5.12.0; extra == "dev"
53
+ Dynamic: license-file
53
54
 
54
55
  # JSON-stat Validator
55
56
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "jsonstat-validator"
7
- version = "0.1.4"
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 = [