This is the Ruby case of an issue that exists in multiple client generators, for example:
If an OpenAPI schema declares query parameters using content: { "application/json": ... }, a generated Ruby client won't correctly serialize those parameters as JSON. Instead, it will ignore this declaration and pass them as plain stringified representations of the data.
openapi-generator already has a flag called queryIsJsonMimeType that generators can access, which seems to be for exactly this use case, but the Ruby client generator isn't using it.
This is the Ruby case of an issue that exists in multiple client generators, for example:
If an OpenAPI schema declares query parameters using
content: { "application/json": ... }, a generated Ruby client won't correctly serialize those parameters as JSON. Instead, it will ignore this declaration and pass them as plain stringified representations of the data.openapi-generator already has a flag called
queryIsJsonMimeTypethat generators can access, which seems to be for exactly this use case, but the Ruby client generator isn't using it.