diff --git a/CHANGELOG.md b/CHANGELOG.md index 04b5ff8..e1c6224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,11 +16,13 @@ The types of changes are: ## [Unreleased](https://github.com/ethyca/fideslang/compare/3.1.0...main) +### Changed +- Updated the type for `CollectionMeta.partitioning` to allow a list of dicts [#34](https://github.com/ethyca/fideslang/pull/34) ## [3.1.0](https://github.com/ethyca/fideslang/compare/3.0.9...3.1.0) ### Deprecated -- Deprecated `Cookies` model and `.cookies` property on `System` and `PrivacyDeclaration` [#199](https://github.com/ethyca/fideslang/pull/27) +- Deprecated `Cookies` model and `.cookies` property on `System` and `PrivacyDeclaration` [#27](https://github.com/ethyca/fideslang/pull/27) ## [3.0.9](https://github.com/ethyca/fideslang/compare/3.0.8...3.0.9) diff --git a/src/fideslang/models.py b/src/fideslang/models.py index 4dd3385..4ce2340 100644 --- a/src/fideslang/models.py +++ b/src/fideslang/models.py @@ -7,7 +7,7 @@ from datetime import datetime from enum import Enum -from typing import Annotated, Dict, List, Optional, Union, Any +from typing import Annotated, Any, Dict, List, Optional, Union from warnings import warn from packaging.version import InvalidVersion, Version @@ -531,7 +531,7 @@ class CollectionMeta(BaseModel): # partitioning metadata is kept open-ended as it is an experimental feature - # more strictly defined metadata structures will be supported in the future - partitioning: Optional[Dict] = None + partitioning: Optional[Union[Dict, List[Dict]]] = None class DatasetCollection(FidesopsMetaBackwardsCompat):