Hi Ron, according to the spec http://swagger.io/specification/, 
collectionFormat default value is "csv". Looks like no way to change it 
using annotation for now.

On Monday, December 19, 2016 at 1:29:09 AM UTC+13, Ron wrote:
>
> That could be a bug with the swagger-maven-plugin. You should open a 
> ticket on that project.
>
>  
>
>  
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of Vic <
> [email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Thursday, 15 December 2016 at 23:21
> *To: *Swagger <[email protected] <javascript:>>
> *Subject: *Re: How can I set "collectionFormat" using swagger annotation?
>
>  
>
> Hi Tony, 
>
>  
>
> Thanks for your reply, while what I got is "csv", it's weird.
>
>  
>
> Regards,
>
> Vic
>
> On Friday, December 16, 2016 at 2:36:25 AM UTC+13, tony tam wrote: 
>
> Hi, the collection format is not supported via annotations, it should 
> default to “multi” which I believe is the default format for JAXRS arrays. 
>
>  
>
> On Dec 14, 2016, at 6:12 PM, Vic <[email protected]> wrote:
>
>  
>
> Below is from the auto-generated swagger spec. 
>
>  
>
> {
>
>     "name": "mid",
>
>     "in": "query",
>
>     "required": false,
>
>     "type": "array",
>
>     "items": {
>
>         "type": "string",
>
>         "format": "uuid"
>
>     },
>
>     "collectionFormat": "csv" // HOW TO CHANGE IT?
>
> }
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to