Yes agree with abimaran. Since this same code runs on swagger online editor
and this use as generic tool i think we do not need to add licence headers.
Class, method name constructing logic followed standard swagger way of
generating code. However you might need to add licence before you commit
code.

Thanks,
sanjeewa.

On Tue, Nov 14, 2017 at 8:18 AM, Inosh Perera <[email protected]> wrote:

> Hi Abimaran,
>
> Understood. Thanks for the clarification.
>
> Regards,
> Inosh
>
> On Mon, Nov 13, 2017 at 5:36 PM, Abimaran Kugathasan <[email protected]>
> wrote:
>
>> Hi Inosh,
>>
>> On Mon, Nov 13, 2017 at 2:27 PM, Inosh Perera <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I'm writing device type APIs for IoT server and I have written a yaml
>>> that I'm trying to convert[1] to MSF4J. When checking the generated code,
>>> it looks bit messy and there is no proper formatting or license headers in
>>> the generated code. Is there a way to do this with io.swagger.codegen or is
>>> it done manually?
>>>
>>
>>  Normally we don't format the code or license header for the generated
>> code. License can be added through mustache files. But, this code gen don't
>> have the capability to auto format the code as class names, parameters
>> names are depends on your API swagger file parameters. It's hard to format.
>>
>> Also, since this gen directory is replace each time you generate the
>> code, we don't do anything manually there. But, functionality should work.
>>
>> [1]: https://github.com/sanjeewa-malalgoda/swagger2MSF4J/
>> tree/master/src/main/resources/MSF4J
>>
>>>
>>> [1]. https://github.com/sanjeewa-malalgoda/swagger2MSF4J
>>>
>>> Regards,
>>> Inosh
>>>
>>> --
>>> Inosh Perera
>>> Senior Software Engineer, WSO2 Inc.
>>> Tel: 077813 7285, 0785293686 <078%20529%203686>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : [email protected]
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>
>
> --
> Inosh Perera
> Senior Software Engineer, WSO2 Inc.
> Tel: 077813 7285, 0785293686 <078%20529%203686>
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

<http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/
<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to