Instead of having multiple separate parameters attached to an endpoint I have grouped them into an object that looks like:
saleParameters:
in: query
name: saleParameters
schema:
type: object
properties:
userIds:
type: array
items:
type: integer
format: int64
notification:
type: boolean
type:
$ref: '#/components/schemas/SaleType'
categories:
type: array
items:
type: string
purpose:
type: string
style: form
explode: true
Then I'm generating API with swagger generator, but the query parameter values won't bind to an object, because swagger adds @RequestParam
like here:
default ResponseEntity<byte[]> getSaleLogs(
@ApiParam(value = "") @Valid @RequestParam(value = "saleParameters", required = false) SaleParametersDTO saleParameters
Without the annotation everything works fine. Is there a way to make swagger not generate @RequestParam
annotation?