Skip to content

Commit

Permalink
Merge pull request #77 from JaviCerveraIngram/CPS-63-parse-error
Browse files Browse the repository at this point in the history
CPS-63 Fixed error parsing null values on some models.
  • Loading branch information
vgrebenschikov committed Oct 25, 2019
2 parents d3ea84f + 94dd17a commit 3725b78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connect/models/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def make_object(self, data):
return ContactInfo(**data)


class ValueChoiceSchema(Schema):
class ValueChoiceSchema(BaseSchema):
value = fields.Str()
label = fields.Str()

Expand Down Expand Up @@ -215,7 +215,7 @@ def _deserialize(self, value, attr, obj, **kwargs):
raise ValueError({attr: [u'Not a valid int or string.']})


class ExtIdHubSchema(Schema):
class ExtIdHubSchema(BaseSchema):
hub = fields.Nested(HubSchema, only=('id', 'name'))
external_id = ExternalIdField()

Expand Down Expand Up @@ -471,7 +471,7 @@ def make_object(self, data):
return Product(**data)


class ServerErrorResponseSchema(Schema):
class ServerErrorResponseSchema(BaseSchema):
error_code = fields.Str()
params = fields.Dict()
errors = fields.Str(many=True)
Expand Down Expand Up @@ -514,7 +514,7 @@ def make_object(self, data):
return TierAccount(**data)


class TierAccountsSchema(Schema):
class TierAccountsSchema(BaseSchema):
customer = fields.Nested(TierAccountSchema)
tier1 = fields.Nested(TierAccountSchema)
tier2 = fields.Nested(TierAccountSchema)
Expand Down

0 comments on commit 3725b78

Please sign in to comment.