Skip to content

Explode property for query parameter in C# code generator #5133

@marcdebus

Description

@marcdebus

I'm using NSwag version 14.3.

In my OpenAPI 3.0 specification, the following query parameter is defined:

{ "name": "state", "in": "query", "description": "Appointment state", "required": false, "style": "form", "explode": false, "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppointmentState" } } }

However, the generated code always serializes the array like this:

/appointments/?state=FREE&state=ACCEPTED

But I want it to be serialized like this:

/appointments/?state=FREE,ACCEPTED

I found a ticket (#5016) that was apparently merged in version 14.3, which specifically addresses this serialization issue. What am I doing wrong here, or is this still a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions