From 996ccd5bd685ba9d093b4231ee8749659b4cf331 Mon Sep 17 00:00:00 2001 From: Molly He Date: Tue, 12 May 2026 13:36:51 -0700 Subject: [PATCH] fix(jumpstart): ignore unknown fields in HubContentDocument to handle hub schema additions --- sagemaker-core/src/sagemaker/core/jumpstart/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sagemaker-core/src/sagemaker/core/jumpstart/models.py b/sagemaker-core/src/sagemaker/core/jumpstart/models.py index 8b1b282224..ac4450f772 100644 --- a/sagemaker-core/src/sagemaker/core/jumpstart/models.py +++ b/sagemaker-core/src/sagemaker/core/jumpstart/models.py @@ -473,6 +473,8 @@ class HubContentDocument(HostingComponentsModel, TrainingComponentsModel): The HubContentDocument class represents the metadata for a JumpStart model. """ + model_config = ConfigDict(validate_assignment=True, extra="ignore") + ModelTypes: List[ModelTypeEnum] Url: str MinSdkVersion: Optional[str] = None