Open AliSot2000 opened 3 months ago
Also, I would like to add that I think Errors in the documentation, especially in openapi.json
should count as bugs because the OpenAPI standard makes this file almost equivalent to code.
I can generate 90% of the python code I need to interact with your service from that file. Errors in that file translate to bugs in the generated code I'm using. Consequently I'd argue that it should also count as bugs. I wouldn't make that case if you provided a description of the API using natural language.
But as it stands, I was hoping to wrap your entire api within one evening. But I keep running into issues with not documented errors, not documented request or response models and requests and responses that don't adhere to the specification you provide etc.
And in my humble opinion, I think it would have been an enrichment if your service had a python wrapper ready to go with it.
Describe the bug
The field
chatId
in theWAHASessionPresence
Model is set as required. However, usingPOST /api/{session}/presence
in conjunction with presenceonline
oroffline
returns the following:HTTP_Error 400
Version
Suggested Solutions:
optional
and provide adescription
indicating that it mustn't be set if the presence isonline
oroffline
.chatId
in the backend if the presence isonline
orofflline
global presence
and one forchat presence
.