Skip to content

Add type as required property in source object of webhook #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 9, 2025

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.

@Yang-33 Yang-33 merged commit 1fc4f01 into master Apr 9, 2025
13 checks passed
@Yang-33 Yang-33 deleted the update-diff-20250409062331 branch April 9, 2025 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant