Skip to content

Commit

Permalink
fixed interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Nov 18, 2024
1 parent fa57c9e commit 21c4c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21c4c0d

Please sign in to comment.