We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0fbd2 commit f51bc8dCopy full SHA for f51bc8d
src/nylas/schemas.py
@@ -6,6 +6,7 @@
6
Field,
7
)
8
from typing import (
9
+ List,
10
Optional,
11
12
@@ -47,7 +48,7 @@ class MailRecipient(BaseModel):
47
48
49
50
class SendEmailSchema(BaseModel):
- to: list[MailRecipient] = Field(
51
+ to: List[MailRecipient] = Field(
52
...,
53
description="List of recipient email addresses",
54
example=[{"name": "Receiver name", "email": "[email protected]"}],
@@ -66,7 +67,7 @@ class SendEmailSchema(BaseModel):
66
67
description="Email message body",
68
example="This is a test email message.",
69
- attachments: Optional[list[str]] = Field(
70
+ attachments: Optional[List[str]] = Field(
71
[],
72
description="List of attachment URLs",
73
example=["https://example.com/attachment1.pdf"],
0 commit comments