Skip to content

Commit

Permalink
set privacy declarations to use orm_mode (#101)
Browse files Browse the repository at this point in the history
* set privacy declarations to use orm_mode

* update changelog
  • Loading branch information
adamsachs authored Apr 18, 2023
1 parent 525c809 commit 59c5042
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ The types of changes are:

## [Unreleased](https://github.com/ethyca/fideslang/compare/1.3.2...main)

### Changed
* Make `PrivacyDeclaration` use pydantic `orm_mode` [#101](https://github.com/ethyca/fideslang/pull/101)

## [1.3.3](https://github.com/ethyca/fideslang/compare/1.3.2...1.3.3)

### Changed
* Make `PrivacyDeclation.name` optional [#97](https://github.com/ethyca/fideslang/pull/97)

Expand Down
5 changes: 5 additions & 0 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,11 @@ def deprecate_dataset_references(cls, value: List[FidesKey]) -> List[FidesKey]:

return value

class Config:
"""Config for the Privacy Declaration"""

orm_mode = True


class SystemMetadata(BaseModel):
"""
Expand Down

0 comments on commit 59c5042

Please sign in to comment.