Skip to content

Commit

Permalink
Add override consent to application config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAndrewJackson committed Dec 5, 2023
1 parent 5bfc8d8 commit e2bbde0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fides/api/schemas/application_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ class Config:
extra = Extra.forbid


class ConsentConfig(FidesSchema):
override_vendor_purposes: Optional[bool]

class Config:
extra = Extra.forbid


class SecurityApplicationConfig(FidesSchema):
# only valid URLs should be set as cors_origins
# for advanced usage of non-URLs, e.g. wildcards (`*`), the related
Expand Down Expand Up @@ -94,6 +101,7 @@ class ApplicationConfig(FidesSchema):
notifications: Optional[NotificationApplicationConfig]
execution: Optional[ExecutionApplicationConfig]
security: Optional[SecurityApplicationConfig]
consent: Optional[ConsentConfig]

@root_validator(pre=True)
def validate_not_empty(cls, values: Dict) -> Dict:
Expand Down
1 change: 1 addition & 0 deletions src/fides/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ def get_dev_mode() -> bool:
"storage": [
"active_default_storage_type",
],
"consent": ["override_vendor_purposes"],
}

0 comments on commit e2bbde0

Please sign in to comment.