Skip to content

Ruby clients don't correctly handle JSON-encoded query parameters #24122

Description

@nbudin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions