Skip to content

Commit

Permalink
Source Shopify #4841 - ignore transforming for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliizazmic committed Aug 9, 2021
1 parent 1ef3d85 commit 4409209
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def _transform_array(self, array: List[Any], item_properties: Mapping[str, Any])

def _transform_object(self, transform_object: Mapping[str, Any], properties: Mapping[str, Any]):
for object_property, value in transform_object.items():
if not value:
continue
if object_property in properties:
object_properties = properties.get(object_property)
schema_types = object_properties.get("type", [])
Expand Down

0 comments on commit 4409209

Please sign in to comment.