Hi this isn’t really a bug, it’s a use case that’s not supported.  Please 
consider opening a ticket or even a PR in the swagger-core project.

> On Nov 2, 2016, at 4:01 AM, Jaspreet Kaur <[email protected]> wrote:
> 
> Hello,
> 
> I have integrated swagger with spring framework.
> I have following two issues -
> Issue 1. How to force method parameters with custom annotation to have 
> parameter type as formData in json output via ../v2/api-docs
> 
> 
> For example, there exists an API in my custom controller
> 
> public AttributeInfoList 
> createAttributes(@WebSerializedParam("attributeinfolist") AttributeInfoList 
> attributeInfoList){
> .........
> }
> 
> 
> The problem is that Parameter Type for attributeInfoList is of type body.
> I expect parameterType to be formData as i will have a URL like 
> ....../service/admin/attributes?attributeinfolist=<attributeInfoList><attributeInfo><name>Is
>  publish ready 3333</name></attributeInfo></attributeInfoList>
> 
> 
> 2. The REST request parameter name should be same as annotation value. 
> Such that the parameter name should be attributeinfolist and not 
> attributeInfoList(i.e. camelCase)
> 
> 
> 
> Thanks,
> Jaspreet
> 
> 
> 
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <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