Skip to content

Commit 721a49f

Browse files
fix(jumpstart): ignore unknown fields in HubContentDocument to handle hub schema additions (#5849)
1 parent 6b78dd7 commit 721a49f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • sagemaker-core/src/sagemaker/core/jumpstart

sagemaker-core/src/sagemaker/core/jumpstart/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ class HubContentDocument(HostingComponentsModel, TrainingComponentsModel):
473473
The HubContentDocument class represents the metadata for a JumpStart model.
474474
"""
475475

476+
model_config = ConfigDict(validate_assignment=True, extra="ignore")
477+
476478
ModelTypes: List[ModelTypeEnum]
477479
Url: str
478480
MinSdkVersion: Optional[str] = None

0 commit comments

Comments
 (0)