Skip to content

Commit 63be043

Browse files
fix nullable
1 parent 6e06e45 commit 63be043

File tree

1 file changed

+8
-7
lines changed
  • packages/models-library/src/models_library/api_schemas_directorv2

1 file changed

+8
-7
lines changed

packages/models-library/src/models_library/api_schemas_directorv2/clusters.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,15 @@ def set_default_thumbnail_if_empty(cls, v, info: ValidationInfo):
168168

169169

170170
class ClusterPatch(BaseCluster):
171-
name: str | None # type: ignore[assignment]
172-
description: str | None
173-
type: ClusterTypeInModel | None # type: ignore[assignment]
174-
owner: GroupID | None # type: ignore[assignment]
175-
thumbnail: HttpUrl | None
176-
endpoint: AnyUrl | None # type: ignore[assignment]
177-
authentication: ExternalClusterAuthentication | None # type: ignore[assignment]
171+
name: str | None = Field(default=None) # type: ignore[assignment]
172+
description: str | None = Field(default=None)
173+
type: ClusterTypeInModel | None = Field(default=None) # type: ignore[assignment]
174+
owner: GroupID | None = Field(default=None) # type: ignore[assignment]
175+
thumbnail: HttpUrl | None = Field(default=None)
176+
endpoint: AnyUrl | None = Field(default=None) # type: ignore[assignment]
177+
authentication: ExternalClusterAuthentication | None = Field(default=None) # type: ignore[assignment]
178178
access_rights: dict[GroupID, ClusterAccessRights] | None = Field( # type: ignore[assignment]
179+
default=None,
179180
alias="accessRights"
180181
)
181182

0 commit comments

Comments
 (0)