We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b82bab commit 97d8c1eCopy full SHA for 97d8c1e
connect/models/contact_info.py
@@ -24,7 +24,7 @@ class ContactInfo(BaseModel):
24
country = None # type: str
25
""" (str) Country code. """
26
27
- state = None # type: str
+ state = None # type: Optional[str]
28
""" (str) State name. """
29
30
city = None # type: str
connect/models/schemas.py
@@ -77,7 +77,7 @@ class ContactInfoSchema(BaseSchema):
77
contact = fields.Nested(ContactSchema)
78
country = fields.Str()
79
postal_code = fields.Str()
80
- state = fields.Str()
+ state = fields.Str(allow_none=True)
81
82
@post_load
83
def make_object(self, data):
0 commit comments