Skip to content

Commit daa38d9

Browse files
pattisdradamsachs
andcommitted
Relax System Legal Basis for Transfers (#162)
Co-authored-by: Adam Sachs <[email protected]>
1 parent da11cf8 commit daa38d9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/fideslang/models.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,18 @@ class LegalBasisForProfilingEnum(str, Enum):
161161

162162

163163
class LegalBasisForTransfersEnum(str, Enum):
164-
"""The model for describing the legal basis under which data is transferred"""
164+
"""
165+
The model for describing the legal basis under which data is transferred
166+
167+
We currently do _not_ enforce this enum on the `legal_basis_for_transfers`
168+
field, because the set of allowable values seems to be changing frequently
169+
and without clear notice in upstream, public data sources.
170+
"""
165171

166172
ADEQUACY_DECISION = "Adequacy Decision"
167173
SCCS = "SCCs"
168174
BCRS = "BCRs"
175+
SUPPLEMENTARY_MEASURES = "Supplementary Measures"
169176
OTHER = "Other"
170177

171178

@@ -1122,7 +1129,7 @@ class System(FidesModel):
11221129
default=False,
11231130
description="Whether this system transfers data to other countries or international organizations.",
11241131
)
1125-
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
1132+
legal_basis_for_transfers: List[str] = Field(
11261133
default_factory=list,
11271134
description="The legal basis (or bases) under which the data is transferred.",
11281135
)

tests/fideslang/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def test_expanded_system(self):
404404
uses_profiling=True,
405405
legal_basis_for_profiling=["Explicit consent", "Contract"],
406406
does_international_transfers=True,
407-
legal_basis_for_transfers=["Adequacy Decision", "SCCs"],
407+
legal_basis_for_transfers=["Adequacy Decision", "SCCs", "New legal basis"],
408408
requires_data_protection_assessments=True,
409409
dpa_location="www.example.com/dpa_location",
410410
privacy_policy="https://vdx.tv/privacy/",

0 commit comments

Comments
 (0)