Commit 2f38058
authored
Add type as required property in source object of webhook (#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.1 parent 31fa3c7 commit 2f38058
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
0 commit comments