Hi Awanthika,

This is the place where Swagger codegen is available.

https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen

And this is the file we are modifying to remove some unwanted imports and
annotations.

https://github.com/swagger-api/swagger-codegen/blob/v2.1.5/modules/swagger-codegen/src/main/resources/JavaJaxRS/jersey1_18/api.mustache

Then built the module and used .jar file inside Eclipse plugin.

Regarding the error related to ApiParam, there was no possibility to remove
this annotation by editing api.mustache file. So we manually removed it
before building. We can analyze it further and find a way to remove that
programmatically.

Thanks,
Rajeevan

On Wed, Feb 3, 2016 at 7:37 PM, Awanthika Senarath <awanth...@wso2.com>
wrote:

> Hi all,
>
> There is an issue with the codegen tool (swagger codegen) we are using to
> generate the java code from the swagger definition, as it automatically
> import javax.servlet dependencies which causes a build failure of the
> generated code. MSF4J does not support javax.servlet.
>
> Also it inserts some ApiParam annotations in the code which are not
> supported from MSF4J as well.
>
> *@ Rajeevan* : Can you please share with me the location you forked the
> swagger gen source and changed it according to our requirements ? Did these
> changes involve the errors I have mentioned above?
>
>
>
> Regards
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Vimalanathan Rajeevan
Software Engineer,
WSO2, Inc. *http://wso2.com* <http://wso2.com>
Lean.Enterprise.Middleware

Mobile:
*+94 773090875*
LinkedIn:
*https://www.linkedin.com/in/RajeevanVimalanathan
<https://www.linkedin.com/in/rajeevanvimalanathan>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to