diff --git a/packages/models-library/src/models_library/api_schemas_webserver/projects.py b/packages/models-library/src/models_library/api_schemas_webserver/projects.py index a7d63904350..7c4116a136c 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/projects.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/projects.py @@ -33,8 +33,8 @@ class ProjectCreateNew(InputSchema): uuid: ProjectID | None = None # NOTE: suggested uuid! but could be different! name: str - description: str | None - thumbnail: HttpUrl | None + description: str | None = None + thumbnail: HttpUrl | None = None workbench: NodesDict access_rights: dict[GroupIDStr, AccessRights] tags: list[int] = Field(default_factory=list) @@ -55,8 +55,8 @@ class ProjectCreateNew(InputSchema): # NOTE: based on OVERRIDABLE_DOCUMENT_KEYS class ProjectCopyOverride(InputSchema): name: str - description: str | None - thumbnail: HttpUrl | None + description: str | None = None + thumbnail: HttpUrl | None = None prj_owner: LowerCaseEmailStr _empty_is_none = field_validator("thumbnail", mode="before")( diff --git a/packages/models-library/src/models_library/api_schemas_webserver/projects_nodes.py b/packages/models-library/src/models_library/api_schemas_webserver/projects_nodes.py index 7b65b84cb5f..81eaa893d60 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/projects_nodes.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/projects_nodes.py @@ -19,7 +19,7 @@ class NodeCreate(InputSchemaWithoutCamelCase): service_key: ServiceKey service_version: ServiceVersion - service_id: str | None + service_id: str | None = None BootOptions: TypeAlias = dict