[Dev] MSS Tool generated code not resolving dependencies

2016-02-03 Thread Awanthika Senarath
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSS Tool generated code not resolving dependencies

2016-02-04 Thread Vimalanathan Rajeevan
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 
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* 
Lean.Enterprise.Middleware

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


Re: [Dev] MSS Tool generated code not resolving dependencies

2016-02-04 Thread Awanthika Senarath
Hi Rajeevan,

I have already altered the carbon import into the new refactored MSF4J
import. yet I guess we need to figure out a ways to remove the ApiParam
annotations from the gen code programmatically.


I will have a look on this.

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Thu, Feb 4, 2016 at 7:58 PM, Vimalanathan Rajeevan 
wrote:

> 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 
> 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* 
> Lean.Enterprise.Middleware
>
> Mobile:
> *+94 773090875 <%2B94%20773090875>*
> LinkedIn:
> *https://www.linkedin.com/in/RajeevanVimalanathan
> *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev