Skip to content

Commit b76c3c0

Browse files
adamsachsNevilleS
andauthored
add support for PrivacyDeclaration.flexible_legal_basis_for_processin… (#177)
* add support for PrivacyDeclaration.flexible_legal_basis_for_processing attribute * tweak description Co-authored-by: Neville Samuell <[email protected]> --------- Co-authored-by: Neville Samuell <[email protected]>
1 parent fac23a6 commit b76c3c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/fideslang/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,10 @@ class PrivacyDeclaration(BaseModel):
991991
features: List[str] = Field(
992992
default_factory=list, description="The features of processing personal data."
993993
)
994+
flexible_legal_basis_for_processing: bool = Field(
995+
description="Whether the legal basis for processing is 'flexible' (i.e. can be overridden in a privacy notice) for this declaration.",
996+
default=False,
997+
)
994998
legal_basis_for_processing: Optional[LegalBasisForProcessingEnum] = Field(
995999
description="The legal basis under which personal data is processed for this purpose."
9961000
)

tests/fideslang/test_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ def test_expanded_system(self):
419419
uses_cookies=True,
420420
cookie_refresh=True,
421421
uses_non_cookie_access=True,
422-
legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure"
422+
legitimate_interest_disclosure_url="http://www.example.com/legitimate_interest_disclosure",
423+
flexible_legal_basis_for_processing=True,
423424
)
424425

425426
@mark.parametrize(

0 commit comments

Comments
 (0)