File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ The types of changes are:
1616
1717## [ Unreleased] ( https://github.com/ethyca/fideslang/compare/2.2.1...main )
1818
19+ ### Added
20+
21+ - Give Flexible Legal Basis a default of True [ #184 ] ( https://github.com/ethyca/fideslang/pull/184 )
22+
1923## [ 2.2.1] ( https://github.com/ethyca/fideslang/compare/2.2.0...2.2.1 )
2024
2125### Added
Original file line number Diff line number Diff line change @@ -991,8 +991,9 @@ 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 : Optional [ bool ] = Field (
994+ flexible_legal_basis_for_processing : bool = Field (
995995 description = "Whether the legal basis for processing is 'flexible' (i.e. can be overridden in a privacy notice) for this declaration." ,
996+ default = True ,
996997 )
997998 legal_basis_for_processing : Optional [LegalBasisForProcessingEnum ] = Field (
998999 description = "The legal basis under which personal data is processed for this purpose."
Original file line number Diff line number Diff line change @@ -434,6 +434,17 @@ def test_expanded_system(self):
434434 ],
435435 )
436436
437+ def test_flexible_legal_basis_default (self ):
438+ pd = PrivacyDeclaration (
439+ data_categories = [],
440+ data_qualifier = "aggregated_data" ,
441+ data_subjects = [],
442+ data_use = "provide" ,
443+ ingress = ["user" ],
444+ name = "declaration-name" ,
445+ )
446+ assert pd .flexible_legal_basis_for_processing
447+
437448 @mark .parametrize (
438449 "deprecated_field,value" ,
439450 [
You can’t perform that action at this time.
0 commit comments