Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#82] Fix resource preview model #74

Merged
merged 7 commits into from
Nov 26, 2024
Prev Previous commit
Next Next commit
fixing Token model with optional fields set to None for default values
  • Loading branch information
pkdash committed Oct 9, 2024
commit b7076aab7292783769eada3d6f7d60eaf60f7cdc
8 changes: 4 additions & 4 deletions hsclient/oauth2_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
class Token(BaseModel):
access_token: str
token_type: str
scope: Optional[str]
state: Optional[str]
expires_in: Optional[int]
refresh_token: Optional[str]
scope: Optional[str] = None
state: Optional[str] = None
expires_in: Optional[int] = None
refresh_token: Optional[str] = None

class Config:
# do not allow extra fields
Expand Down
Loading