[
https://issues.apache.org/jira/browse/YARN-6187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16227785#comment-16227785
]
Eric Yang commented on YARN-6187:
---------------------------------
[~gsaha] Swagger is good for generating initial classes to get development
going. Changes made to Swagger definition will result in generating new code
with empty classes. I don't see a way to constantly update swagger yaml file,
and keeping generated code inline with human added logic. Do we still need
this?
> Auto-generate REST API resources and server side stubs from swagger definition
> ------------------------------------------------------------------------------
>
> Key: YARN-6187
> URL: https://issues.apache.org/jira/browse/YARN-6187
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Gour Saha
> Fix For: yarn-native-services
>
>
> Currently the REST API resource package is generated offline using swagger
> codegen library and then formatted with basic eclipse formatter and then
> checked in. It is not entirely in line with YARN documentation and coding
> guidelines. We need to do these things to streamline this effort -
> # Auto-generate the resource package and the server side API interface/stubs
> using swagger codegen libraries
> # Use a template framework like jmustache or similar (or better) to align/add
> documentation and code-formatting in-line with Yarn project standards
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]