Skip to content

Commit 45a4b03

Browse files
github-actions[bot]github-actions
and
github-actions
authored
Fix type of expireTimestamp (#802)
line/line-openapi#106 Type for `CreateAudienceGroupResponse#expireTimestamp` is not float or double, but integer actually. This change fixes type. Co-authored-by: github-actions <[email protected]>
1 parent 042667e commit 45a4b03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

linebot/v3/audience/models/create_audience_group_response.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
import json
1919

2020

21-
from typing import Optional, Union
22-
from pydantic.v1 import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, validator
21+
from typing import Optional
22+
from pydantic.v1 import BaseModel, Field, StrictBool, StrictInt, StrictStr, validator
2323
from linebot.v3.audience.models.audience_group_type import AudienceGroupType
2424

2525
class CreateAudienceGroupResponse(BaseModel):
@@ -33,7 +33,7 @@ class CreateAudienceGroupResponse(BaseModel):
3333
description: Optional[StrictStr] = Field(None, description="The audience's name.")
3434
created: Optional[StrictInt] = Field(None, description="When the audience was created (in UNIX time).")
3535
permission: Optional[StrictStr] = Field(None, description="Audience's update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update. ")
36-
expire_timestamp: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="expireTimestamp", description="Time of audience expiration. Only returned for specific audiences. ")
36+
expire_timestamp: Optional[StrictInt] = Field(None, alias="expireTimestamp", description="Time of audience expiration. Only returned for specific audiences. ")
3737
is_ifa_audience: Optional[StrictBool] = Field(None, alias="isIfaAudience", description="The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of: `true`: Accounts are specified with IFAs. `false` (default): Accounts are specified with user IDs. ")
3838

3939
__properties = ["audienceGroupId", "createRoute", "type", "description", "created", "permission", "expireTimestamp", "isIfaAudience"]

0 commit comments

Comments
 (0)