Skip to content

Commit b7076aa

Browse files
committed
fixing Token model with optional fields set to None for default values
1 parent bf0e9fa commit b7076aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hsclient/oauth2_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
class Token(BaseModel):
99
access_token: str
1010
token_type: str
11-
scope: Optional[str]
12-
state: Optional[str]
13-
expires_in: Optional[int]
14-
refresh_token: Optional[str]
11+
scope: Optional[str] = None
12+
state: Optional[str] = None
13+
expires_in: Optional[int] = None
14+
refresh_token: Optional[str] = None
1515

1616
class Config:
1717
# do not allow extra fields

0 commit comments

Comments
 (0)