forked from loafle/openapi-generator-original
Checking for "trueness" here is not sufficient. An empty list has a truth value of false so it will not be encoded as json and sent as the request body as it should. Instead we need to check explicitly if body is None.