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.
- {jsonstat_validator-0.1.4/jsonstat_validator.egg-info → jsonstat_validator-0.1.6}/PKG-INFO +3 -2
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator/__init__.py +1 -1
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator/validator.py +7 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6/jsonstat_validator.egg-info}/PKG-INFO +3 -2
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/pyproject.toml +1 -1
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/LICENSE +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/MANIFEST.in +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/README.md +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/SOURCES.txt +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/dependency_links.txt +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/requires.txt +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/top_level.txt +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/requirements.txt +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/setup.cfg +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/setup.py +0 -0
- {jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/tests/test_custom.py +0 -0
- {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.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: jsonstat-validator
|
3
|
-
Version: 0.1.
|
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
|
|
@@ -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.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: jsonstat-validator
|
3
|
-
Version: 0.1.
|
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
|
|
File without changes
|
File without changes
|
File without changes
|
{jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/requires.txt
RENAMED
File without changes
|
{jsonstat_validator-0.1.4 → jsonstat_validator-0.1.6}/jsonstat_validator.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|