Skip to content

Commit

Permalink
Merge 75b6f9d into 0e44a49
Browse files Browse the repository at this point in the history
  • Loading branch information
mweber-qvantel committed Mar 9, 2020
2 parents 0e44a49 + 75b6f9d commit f7c363e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsonapi_client/resourceobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def __init__(self, data: dict,

specification = self._schema.find_spec(self._resource.type, self._full_name)

# Using .pop() below modifies the data, so we make a shallow copy of it first
data = data.copy()
# If there's schema for this object, we will use it to construct object.
if specification:
for field_name, field_spec in specification['properties'].items():
Expand Down

0 comments on commit f7c363e

Please sign in to comment.