Assume I have a URL which takes a path of: ?filter[id]=1&filter[name]=bob&order[][name]=asc&order[][age]=desc
How would one be able to convert this into swagger documentation, specifically, array of objects and arrays as the query parameter.
On
It's an old question, but the answer above is misleading
array of objects s is not supported in OpenAPI 3.0/3.1 Specifications currently defines
see the question OpenAPI query string parameter with list of objects
Your example is not an array of objects but two separate object parameters -
filterandorder[], each serialized using thedeepObjectstyle (supported in OpenAPI 3.0). You can describe these parameters as follows: