Skip to content

Commit

Permalink
Excluding unknown fields for audience reality values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndifreke committed Feb 11, 2022
1 parent 67ddbc4 commit 3ec8036
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion livestyled/__init__.py
@@ -1 +1 @@
__version__ = '1.1.52'
__version__ = '1.1.53'
6 changes: 6 additions & 0 deletions livestyled/schemas/audience.py
Expand Up @@ -6,6 +6,9 @@


class AudienceRealityValuesValueSchema(Schema):
class Meta:
unknown = EXCLUDE

operator = fields.String()
value = fields.String()

Expand All @@ -16,6 +19,9 @@ def pre_process_value(self, data, **kwarg):


class AudienceRealityValuesSchema(Schema):
class Meta:
unknown = EXCLUDE

reality = RelatedResourceLinkField(schema=RealitySchema, microservice_aware=True)
values = fields.Nested(AudienceRealityValuesValueSchema, many=True)

Expand Down

0 comments on commit 3ec8036

Please sign in to comment.