I am trying to document with OpenAPI a query string which look like
filtered[0][id]=code&filtered[0][value]=12345 and contains a list of object with properties id and value.
My yaml documentation looks like the following
parameters: - name: filtered in: query description: filters to be applied explode: true style: deepObject schema: type: array items: properties: id: description: name of the field to be filtered type: string value: description: value of the filter type: object The problem is the following: it looks like the style: deepObject option works only for one level, and not at the second level where my objects actually are. That is, it expects a query string like
?sorted[0]=%7B%0A%20%20%22id%22%3A%20%22string%22%2C%0A%20%20%22value%22%3A%20true%0A%7D with the object not serialized as an array with id and value keys.
Is there a way to solve this?
filtered[0][id]=code&filtered[0][value]=12345