Skip to content

Commit 499893e

Browse files
review @pcrespov
1 parent ef6859f commit 499893e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/models-library/src/models_library/api_schemas_webserver/projects_conversations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from datetime import datetime
2-
from typing import Self
2+
from typing import Annotated, Self
33

44
from pydantic import Field
55

@@ -22,7 +22,7 @@
2222
class ConversationRestGet(OutputSchema):
2323
conversation_id: ConversationID
2424
product_name: ProductName
25-
name: str = Field(..., max_length=50)
25+
name: Annotated[str, Field(max_length=50)]
2626
project_uuid: ProjectID | None
2727
user_group_id: GroupID
2828
type: ConversationType
@@ -54,7 +54,7 @@ class ConversationMessageRestGet(OutputSchema):
5454
message_id: ConversationMessageID
5555
conversation_id: ConversationID
5656
user_group_id: GroupID
57-
content: str = Field(..., max_length=4096)
57+
content: Annotated[str, Field(max_length=4096)]
5858
type: ConversationMessageType
5959
created: datetime
6060
modified: datetime

packages/models-library/src/models_library/conversations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
class ConversationType(StrAutoEnum):
1818
PROJECT_STATIC = auto() # Static conversation for the project
1919
PROJECT_ANNOTATION = (
20-
auto()
21-
) # Something like sticky note, can be located anywhere in the pipeline UI
20+
auto() # Something like sticky note, can be located anywhere in the pipeline UI
21+
)
2222

2323

2424
class ConversationMessageType(StrAutoEnum):
2525
MESSAGE = auto()
2626
NOTIFICATION = (
27-
auto()
28-
) # Special type of message used for storing notifications in the conversation
27+
auto() # Special type of message used for storing notifications in the conversation
28+
)
2929

3030

3131
#

0 commit comments

Comments
 (0)