whatsapp-http-api
whatsapp-http-api copied to clipboard
[Swagger] - GET /api/sessions/{session} has missing documentation (engine enum)
Describe the bug
According to the schema the engine
field of the SessionInfo
Model should be an object
That's technically not wrong but the Documentation could be complete and indicate it is a another object like {"engine": <EngineString>
}
Version
{
"version": "2024.6.8",
"engine": "NOWEB",
"tier": "PLUS",
"browser": "/usr/bin/chromium"
}
To Reproduce Steps to reproduce the behavior:
- Start an Instance
- Go to the API Docs
- Create a Session
- Check the
/api/sessions/{session}
Endpoint - Compare the
Scheme
to the returned Value when you get the session information
Expected behavior
Either provide correct Documentation -> So another Model for the {"engine": "<EngineString>"} Object or, since that object doesn't encode anything meaningful, flatten it to the outer engine
field being an Engine
Enum