Support Expanding @ModelAttribute Request Params

Spring controller request params that are marked with @ModelAttribute
will now be flattened. In other words, instead of generating an
operation model that contains a complex object in the request, the
operation model will
appear to have been defined as accepting individual
simple type request parameters.

Using the @ModelAttribute on a controller method param
declares that Spring should bind request parameters to
the model object. As such, the Swagger model should
really show individual parameters, and not a complex
object type.
I would expect to have two parameters as @dilipkrish said. 
Regardless of Spring, when you send two ( o more) query parameters with the same name, they are appended resulting in a list, so i don't think it's logically wrong to do so. But yes, if you do as in your example, it would be "wrong"