Giter Club home page Giter Club logo

light-codegen's People

Contributors

243826 avatar balloonwen avatar ddobrin avatar dependabot[bot] avatar dz-1 avatar fredriv avatar gavinchenyan avatar jaswalkiranavtar avatar jiachen1120 avatar nicholasazar avatar pre-commit-ci[bot] avatar santoshaherkar avatar stevehu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

light-codegen's Issues

Need to skip extensions in operation list.

In the following swagger.json, x-description will cause trouble because it is not an operation. Need to skip it while parsing all the http methods for a particular path.

  "paths": {
    "/party/address/get": {
      "x-description": "Address for a party",
      "post": {
        "security": [

implement logic to control overwritten handlers and handler tests with config

In config.json, there are two properties to control if the handlers and handler tests should be overwritten when regenerate the same project into the same folder. The default value should be false in the logic unless it is true in config.json. In the normal case, developers only need to work on these handlers and tests and this provide a convenient way to upgrade to another version of the framework without impact what he/she is doing.

Name space issue with templates

As rocker compiles all the templates into java code and use the folder name of the templates as package name. There are conflicts if we have the same folder name for templates in several frameworks. In order to eliminate the issue, the templates folder should be

resources/templates/{framework}/

Unclear distinction between generator modules and codegen application.

From the readme (in progress of reviewing), i'm learning that a few of the folders in this projects more closely resemble sample/example code (for example light-rest-4j), and doesn't necessarily apply to the codegen functionality.
It was also a surprise to see light-hybrid-4j, a project which is functionally an api container, to be included in this repo.

Maybe it could be a consideration to split this up into light-codegen-demo, light-codegen, and you already have a light-hybrid-4j, so ... not sure.

Update generated Dockerfile to pass in externalized logback.xml in order to override the default logging config.

java -jar -Dlogback.configurationFile=/opt/config/logback.xml /opt/rest.jar

Also, if you want the application to scan the config file to reflect the changes, please add scan="true" in configuration attribute.

<configuration scan="true"> 
 ...
 ...
 </configuration> 
By default logback-classic will scan the changes every one minute, but if we want to
 change this then we have to add another attribute scanPeriod with the time interval and the unit as below.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.