(20241205) Accepting many token ids to list mails.
This commit is contained in:
@@ -37,7 +37,7 @@ sys.path.append("..")
|
||||
|
||||
# For making data behaviour_models:
|
||||
from pydantic import BaseModel, Field, field_validator, PastDatetime
|
||||
from typing import Optional, Literal
|
||||
from typing import Optional, Literal, List
|
||||
|
||||
# My utils:
|
||||
from utils_v2.string import regex
|
||||
@@ -101,8 +101,8 @@ class MailListRequestHeaders(BaseModel):
|
||||
|
||||
class MailListByAccountIdRequestData(BaseModel):
|
||||
|
||||
tokenId: str = Field(
|
||||
description = "the account identifier (Mongo ObjectId) granted by 'MailOAuthModel.get_account_identifier'",
|
||||
tokenId: str | List[str] = Field(
|
||||
description = "the account identifier(s) (Mongo ObjectId) granted by 'MailOAuthModel.get_account_identifier'",
|
||||
frozen = True
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user