flyrain commented on code in PR #466:
URL: https://github.com/apache/iceberg-python/pull/466#discussion_r1504837924


##########
pyiceberg/catalog/rest.py:
##########
@@ -156,8 +156,10 @@ class RegisterTableRequest(IcebergBaseModel):
 class TokenResponse(IcebergBaseModel):
     access_token: str = Field()
     token_type: str = Field()
-    expires_in: int = Field()
-    issued_token_type: str = Field()
+    expires_in: Optional[int] = None
+    issued_token_type: Optional[str] = None
+    refresh_token: Optional[str] = None
+    scope: Optional[str] = None

Review Comment:
   Fixed. Thanks for the suggestion. A curious question: what do we prefer a 
Field annotation here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to