Issue with OpenAPI Specification for Array Parameters in Que

I am encountering an issue with importing an OpenAPI specification into Postman. Specifically, I’m having trouble with the populate parameter, which should be an array in the query string. Despite correctly defining it in the OpenAPI JSON, Postman generates URLs with incorrect formatting.

When I import this JSON into Postman, it generates URLs like {{baseUrl}}/users?populate=<string>&populate=<string> instead of the expected {{baseUrl}}/users?populate=*.

I need the populate parameter to be correctly represented as an array in the query string, so the URL should look like {{baseUrl}}/users?populate=* or {{baseUrl}}/users?populate=["*"].

Could you please provide guidance on how to correctly define the array query parameter in the OpenAPI specification to achieve the desired URL format in Postman?

  • List item

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.