Skip to content

Commit f0563cd

Browse files
pattisdradamsachs
andauthored
Relax System Legal Basis for Transfers (#162)
Co-authored-by: Adam Sachs <adam@ethyca.com>
1 parent a160d70 commit f0563cd

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
@@ -225,11 +225,18 @@ class LegalBasisForProfilingEnum(str, Enum):
225225

226226

227227
class LegalBasisForTransfersEnum(str, Enum):
228-
"""The model for describing the legal basis under which data is transferred"""
228+
"""
229+
The model for describing the legal basis under which data is transferred
230+
231+
We currently do _not_ enforce this enum on the `legal_basis_for_transfers`
232+
field, because the set of allowable values seems to be changing frequently
233+
and without clear notice in upstream, public data sources.
234+
"""
229235

230236
ADEQUACY_DECISION = "Adequacy Decision"
231237
SCCS = "SCCs"
232238
BCRS = "BCRs"
239+
SUPPLEMENTARY_MEASURES = "Supplementary Measures"
233240
OTHER = "Other"
234241

235242

@@ -1181,7 +1188,7 @@ class System(FidesModel):
11811188
default=False,
11821189
description="Whether this system transfers data to other countries or international organizations.",
11831190
)
1184-
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
1191+
legal_basis_for_transfers: List[str] = Field(
11851192
default_factory=list,
11861193
description="The legal basis (or bases) under which the data is transferred.",
11871194
)

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)