[BUG][scala-http-client] Default body should not be a single space
Created by: mickaelmagniez
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The default body sent (for example POST request without any body) is " " (single space character).
Some backends (for example akka-http
) failed to parse it as json.
So it will be better so send an empty body rather than just a space.
openapi-generator version
5.2.1