Skip to content

Commit

Permalink
Update flexible legal basis for processing to make it non-optional wi…
Browse files Browse the repository at this point in the history
…th a True default.
  • Loading branch information
pattisdr committed Nov 15, 2023
1 parent 1bcbd0a commit d273421
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,9 @@ class PrivacyDeclaration(BaseModel):
features: List[str] = Field(
default_factory=list, description="The features of processing personal data."
)
flexible_legal_basis_for_processing: Optional[bool] = Field(
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=True,
)
legal_basis_for_processing: Optional[LegalBasisForProcessingEnum] = Field(
description="The legal basis under which personal data is processed for this purpose."
Expand Down
11 changes: 11 additions & 0 deletions tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,17 @@ def test_expanded_system(self):
],
)

def test_flexible_legal_basis_default(self):
pd = PrivacyDeclaration(
data_categories=[],
data_qualifier="aggregated_data",
data_subjects=[],
data_use="provide",
ingress=["user"],
name="declaration-name",
)
assert pd.flexible_legal_basis_for_processing

@mark.parametrize(
"deprecated_field,value",
[
Expand Down

0 comments on commit d273421

Please sign in to comment.