The default value is irrelevant. It’s up to the tool to know which value fits to the situation, and the maven plugin doesn’t translate it correctly.
From: <[email protected]> on behalf of Vic <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, 22 December 2016 at 17:45 To: Swagger <[email protected]> Subject: Re: How can I set "collectionFormat" using swagger annotation? 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]> on behalf of Vic <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, 15 December 2016 at 23:21 To: Swagger <[email protected]> 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]. 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. -- 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.
