Skip to content

Commit 7e7abcf

Browse files
committed
model init
1 parent 239fdc8 commit 7e7abcf

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

packages/api/src/microsoft/teams/api/models/activity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from typing import Any, Dict, Optional
77

8-
from pydantic import AliasGenerator, BaseModel, ConfigDict, Field
8+
from pydantic import AliasGenerator, BaseModel, ConfigDict
99
from pydantic.alias_generators import to_camel
1010

1111

@@ -20,7 +20,7 @@ class Activity(BaseModel):
2020
extra="allow",
2121
)
2222

23-
type: str = Field("message", description="The type of activity (e.g. 'message')")
23+
type: str = "message"
2424
"""
2525
The type of activity (e.g. 'message').
2626
"""

packages/api/src/microsoft/teams/api/models/conversation/conversation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from typing import Any, Dict, Optional
77

8-
from pydantic import AliasGenerator, BaseModel, ConfigDict, Field
8+
from pydantic import AliasGenerator, BaseModel, ConfigDict
99
from pydantic.alias_generators import to_camel
1010

1111

@@ -19,7 +19,7 @@ class Conversation(BaseModel):
1919
extra="allow",
2020
)
2121

22-
id: str = Field(..., description="The unique identifier for the conversation")
22+
id: str
2323
"""
2424
The unique identifier for the conversation.
2525
"""

packages/api/src/microsoft/teams/api/models/conversation/resource.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Licensed under the MIT License.
44
"""
55

6-
from pydantic import AliasGenerator, BaseModel, ConfigDict, Field
6+
from pydantic import AliasGenerator, BaseModel, ConfigDict
77
from pydantic.alias_generators import to_camel
88

99

@@ -17,14 +17,17 @@ class ConversationResource(BaseModel):
1717
extra="allow",
1818
)
1919

20-
id: str = Field(
21-
description="Id of the resource",
22-
)
20+
id: str
21+
"""
22+
Id of the resource.
23+
"""
2324

24-
activity_id: str = Field(
25-
description="ID of the Activity (if sent)",
26-
)
25+
activity_id: str
26+
"""
27+
Id of the Activity (if sent).
28+
"""
2729

28-
service_url: str = Field(
29-
description="Service endpoint where operations concerning the conversation may be performed",
30-
)
30+
service_url: str
31+
"""
32+
Service endpoint where operations concerning the conversation may be performed.
33+
"""

0 commit comments

Comments
 (0)