Open AliSot2000 opened 6 days ago
If state.changed
is deprecated, consider marking it as such in the openapi.json
.
I'm not sure what kind of backend you're using. I've got some experience with FastAPI (Python). The Framework allows mark endpoints in native code as for example deprecated.
Alternatively, modify your openapi.json
in the "webhooks"
key like this:
{
"session.status": {
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WAHAWebhookSessionStatus"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
},
"summary": "The event is triggered when the session status changes.",
"deprecated": true
}
},
Describe the bug
The documents in the Webhooks
state.changed
,group.join
andgroup.leave
have a payload that doesn't specify the data format within it. It only saysobject
.Version
To Reproduce Steps to reproduce the behavior:
payload
only saysobject
but no further documentation.Expected behavior Have any documentation there.
Engine I'm using NOWEB engine.
EDIT: Forgot about the
statet.changed
webhook.