From b0c6c98b0d7f03cfae8c92840ff6889203faa09a Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Mon, 16 Jun 2025 20:37:09 -0700 Subject: [PATCH 1/2] Updating partition type --- src/fideslang/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): From 3d9988da0e192cd59696fb08f73be5282ef62b09 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Tue, 17 Jun 2025 23:29:08 -0700 Subject: [PATCH 2/2] Updating change log --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)