Skip to content

Commit

Permalink
Classmethod placement was preventing validator from running.
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisdr committed Jun 21, 2023
1 parent 478a951 commit d283aab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/fides/api/schemas/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def validate_data_categories_against_db(
defined_data_categories = list(DefaultTaxonomyDataCategories.__members__.keys())

class DataCategoryValidationMixin(BaseModel):
@classmethod
@validator("data_categories", check_fields=False, allow_reuse=True)
def valid_data_categories(
cls: Type["DataCategoryValidationMixin"], v: Optional[List[FidesKey]]
Expand Down
1 change: 0 additions & 1 deletion src/fides/api/schemas/privacy_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class PrivacyRequestCreate(FidesSchema):
encryption_key: Optional[str] = None
consent_preferences: Optional[List[Consent]] = None # TODO Slated for deprecation

@classmethod
@validator("encryption_key")
def validate_encryption_key(
cls: Type["PrivacyRequestCreate"], value: Optional[str] = None
Expand Down

0 comments on commit d283aab

Please sign in to comment.