Skip to content

Commit

Permalink
BE-1120 - Schema does not allow missing external_id
Browse files Browse the repository at this point in the history
The external_id is not always present in our payload and this raises an exception on creation
  • Loading branch information
Ndifreke committed Jun 1, 2021
1 parent 78623fc commit 771f806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livestyled/schemas/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ class Meta:
coordinates = fields.Nested(LocationCoordinates, allow_none=True)
polygon = fields.Nested(LocationPolygon, allow_none=True)
sort_id = fields.Int(data_key='sortId')
external_id = fields.String(data_key='externalId', allow_none=True, blank=True)
external_id = fields.String(data_key='externalId', allow_none=True, blank=True, missing=None)

0 comments on commit 771f806

Please sign in to comment.