Depending on the implementation, by default, it’s likely it expects the list to be multi rather than csv. I don’t know if this is something that can/should be controlled by the templated implementation or that you should do the parsing yourself. In any case, would suggest filing a ticket on swagger-codegen with the details.
From: <[email protected]> on behalf of Richard Moore <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, July 31, 2017 at 05:31 To: Swagger <[email protected]> Subject: Re: Array input list combines 2 or more entries as one list element On Friday, July 28, 2017 at 9:52:08 AM UTC-5, Richard Moore wrote: I want to be able to pass a comma-separated list of codes. I (attempted to) defined /getByCode/{code} (see attached) to handle this request. The generated server code in ServiceImpl has the method signature correct - public Response getFacilityByCode(List<String> code) If I key one code in the editor form it works, but when I add a second code in the editor form my service implementation gets only one List element with the value of - [00,01] What is causing them to be combined as a single entry and not being passed as a List of two elements of 00 and 01? What do I have wrong? It should have split the input into two elements in the List, right? -- 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.
