Skip to content

Commit

Permalink
add support for PrivacyDeclaration.flexible_legal_basis_for_processin… (
Browse files Browse the repository at this point in the history
#177)

* add support for PrivacyDeclaration.flexible_legal_basis_for_processing attribute

* tweak description

Co-authored-by: Neville Samuell <neville@ethyca.com>

---------

Co-authored-by: Neville Samuell <neville@ethyca.com>
  • Loading branch information
adamsachs and NevilleS authored Oct 10, 2023
1 parent fac23a6 commit b76c3c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down
3 changes: 2 additions & 1 deletion tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b76c3c0

Please sign in to comment.