The following swagger definition:
swagger: '2.0' host: example.com paths: /theResource: get: parameters: - $ref: '#/parameters/fields' parameters: fields: name: fields description: Fields to return in: query type: array collectionFormat: multi uniqueItems: true items: type: string enum: - column1 - column2 - column3 Will generate the following URL, and the server will only receive fields equal to column3.
http://example.com/theResource?fields=column1&fields=column2&fields=column3 How do I change it so that it sends an array in the parameter? For instance:
http://example.com/theResource?fields[]=column1&fields[]=column2&fields[]=column3
fieldstofields[]?