Skip to content

Incorrect request generated from formData with collectionFormat=multi #1526

@tim-lai

Description

@tim-lai

Q&A (please complete the following information)

Reference swagger-api/swagger-ui#3838

Content & configuration

Reference swagger-api/swagger-ui#3838

Describe the bug you're encountering

Referencing swagger-api/swagger-ui#3838
There are two separate issues when using Try It Out -> Execute

  1. SwaggerUI generates incorrect cURL for display. This is a SwaggerUI specific issue.
  2. SwaggerClient generates incorrect request to send. This is a SwaggerClient specific issue (this issue).

To reproduce...

Reference swagger-api/swagger-ui#3838

Expected behavior

SwaggerClient should return a proper FormData instance supporting multiple same keys

Note, OAS 2 and OAS 3.0 have different implementations

Screenshots

Additional context or thoughts

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions