diff --git a/line-openapi b/line-openapi index 31fa3c73..2f380581 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 31fa3c7340c17a495906c96cca14ed38a93caafa +Subproject commit 2f38058136b8f9237feafe34ea86a4be98455fb3 diff --git a/linebot/v3/webhooks/models/source.py b/linebot/v3/webhooks/models/source.py index 30a878c0..f840986d 100644 --- a/linebot/v3/webhooks/models/source.py +++ b/linebot/v3/webhooks/models/source.py @@ -19,7 +19,7 @@ import linebot.v3.webhooks.models -from typing import Optional, Union +from typing import Union from pydantic.v1 import BaseModel, Field, StrictStr class Source(BaseModel): @@ -27,7 +27,7 @@ class Source(BaseModel): the source of the event. https://developers.line.biz/en/reference/messaging-api/#source-user """ - type: Optional[StrictStr] = Field(None, description="source type") + type: StrictStr = Field(..., description="source type") __properties = ["type"]