Skip to content

Commit a2187a4

Browse files
github-actions[bot]github-actions
andauthored
Add type as required property in source object of webhook (#1235)
line/line-openapi#103 In the Messaging API webhook, we use `discriminator` to differentiate classes based on the value of `type`. During the development of bot SDK for Ruby v2, it seems that only `Source` does not have `type` marked as required. This is simply a mistake. The type should always be included to distinguish the kind of JSON, and there should not be any instances where it is absent. Co-authored-by: github-actions <[email protected]>
1 parent 9748c1f commit a2187a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/webhook/model/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export type SourceBase = {
2828
*
2929
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#source-user">type Documentation</a>
3030
*/
31-
type?: string /**/;
31+
type: string /**/;
3232
};

line-openapi

0 commit comments

Comments
 (0)