diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1198a56..cfe2758 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,13 @@ qwikidata Change Log ==================== +v0.1.5 +====== + +**Fixed**: + +* Bug that required `datavalue` field in Qualifiers even if `snaktype` is `somevalue` or `novalue`. + v0.1.4 ====== diff --git a/qwikidata/__init__.py b/qwikidata/__init__.py index fcb30b8..25a2257 100644 --- a/qwikidata/__init__.py +++ b/qwikidata/__init__.py @@ -2,4 +2,4 @@ """Metadata for this package.""" __package_name__ = "qwikidata" -__version__ = "0.1.4" +__version__ = "0.1.5" diff --git a/qwikidata/claim.py b/qwikidata/claim.py index be2695c..3afe85c 100644 --- a/qwikidata/claim.py +++ b/qwikidata/claim.py @@ -105,7 +105,7 @@ def __init__(self, qualifier_dict: typedefs.QualifierDict) -> None: def _validate_qualifier_dict(self, qualifier_dict: typedefs.QualifierDict) -> None: """Raise excpetions if qualifier_dict is not valid.""" - _REQUIRED_KEYS = ["hash", "snaktype", "property", "datavalue", "datatype"] + _REQUIRED_KEYS = ["hash", "snaktype", "property", "datatype"] for req_key in _REQUIRED_KEYS: if req_key not in qualifier_dict: raise ValueError(