Skip to content

Commit 4cb9041

Browse files
Carlo CancellierikevinjqliuFokko
authored
Relax REST client /v1/config response constraints (#2148)
fixing #2122 <!-- In the case this PR will resolve an issue, please replace ${GITHUB_ISSUE_ID} below with the actual Github issue id. --> <!-- Closes #${GITHUB_ISSUE_ID} --> # Rationale for this change # Are these changes tested? Yes tested locally # Are there any user-facing changes? Nope, just use them --------- Co-authored-by: Kevin Liu <[email protected]> Co-authored-by: Fokko Driesprong <[email protected]>
1 parent ca70442 commit 4cb9041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyiceberg/catalog/rest/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ class RegisterTableRequest(IcebergBaseModel):
178178

179179

180180
class ConfigResponse(IcebergBaseModel):
181-
defaults: Properties = Field()
182-
overrides: Properties = Field()
181+
defaults: Optional[Properties] = Field(default_factory=dict)
182+
overrides: Optional[Properties] = Field(default_factory=dict)
183183

184184

185185
class ListNamespaceResponse(IcebergBaseModel):

0 commit comments

Comments
 (0)