Skip to content

Commit ee3a236

Browse files
authored
tier1 always be None in GET tier config request for level 2
Without having null allowable SDk will throw the following error TypeError: Invalid structure for initialization of `TierConfigRequest`. Error: {0: {'tiers': {'tier1': ['Field may not be null.']}}, 1: {'tiers': {'tier1': ['Field may not be null.']}}}. Because in t2 config request t1 account always be none as per api result from connect platform
1 parent 64f5943 commit ee3a236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/models/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def make_object(self, data):
501501

502502
class TierAccountsSchema(Schema):
503503
customer = fields.Nested(TierAccountSchema)
504-
tier1 = fields.Nested(TierAccountSchema)
504+
tier1 = fields.Nested(TierAccountSchema, allow_none=True)
505505
tier2 = fields.Nested(TierAccountSchema, allow_none=True)
506506

507507
@post_load

0 commit comments

Comments
 (0)