diff --git a/src/fideslang/models.py b/src/fideslang/models.py index 7f15512e..6853d93e 100644 --- a/src/fideslang/models.py +++ b/src/fideslang/models.py @@ -991,6 +991,10 @@ class PrivacyDeclaration(BaseModel): features: List[str] = Field( default_factory=list, description="The features of processing personal data." ) + flexible_legal_basis_for_processing: bool = Field( + description="Whether the legal basis for processing is 'flexible' (i.e. can be overridden in a privacy notice) for this declaration.", + default=False, + ) legal_basis_for_processing: Optional[LegalBasisForProcessingEnum] = Field( description="The legal basis under which personal data is processed for this purpose." ) diff --git a/tests/fideslang/test_models.py b/tests/fideslang/test_models.py index ea3d7dd8..6016c763 100644 --- a/tests/fideslang/test_models.py +++ b/tests/fideslang/test_models.py @@ -419,7 +419,8 @@ def test_expanded_system(self): uses_cookies=True, cookie_refresh=True, uses_non_cookie_access=True, - legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure" + legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure", + flexible_legal_basis_for_processing=True, ) @mark.parametrize(