Releases: networknt/light-codegen
Releases · networknt/light-codegen
1.5.21
1.5.20
1.5.19
1.5.19 (2018-09-22)
Implemented enhancements:
- OverwriteHandler flag needs to be at individual handler #165
Closed issues:
- OpenAPI spec Reusable Enums not supported #176
- remove openapi-parser validator mapping in service.yml #174
- upgrade to new openapi-parser API in openapi generator #173
- put serviceId into the health endpoint as path parameter #172
- update rest generator to use the openapi.yml/json and swagger.json directly #171
- remove XLogger dependencies #170
- Add support for variable/multi-handler chains in the generator #169
- generate framework specific security and validator config files #168
- flatten the config files into the same directory for k8s #167
- overwriteHandler=false does not create new handlers #164
- java.lang.ClassCastException: java.lang.String cannot be cast to com.jsoniter.any.Any #163
- upgrade to undertow 2.0.11.Final #162
- update HandlerProvider package name #161
- NotDirectoryException during build of codegen-core #159
- Update generated handles to extend from LightHttpHandler #157
- Add a Build Number to the server.yml #155
- update client.yml, secret.yml and security.yml templates #154
- Swagger/OpenAPI specs: define proper data type based on the format of the definition type #153
- filter out signatures for signed jar files in fatjar creation #152
- Set java heap size to the cgroup memory limit in Dockerfile #150
- Generation of REST /health and /server/info endpoints shall be configurable #149
- .project file generated for swagger/openapi is invalid, cannot be opened with eclipse #147
- Code generation fails without "securitySchemes" section in openapi model #146
- light-codegen command line error handling #143
- Update dependencies for REST templates #141
- enable codegen-web service with cors so it can be consumed by SPA #139
- Light Codegen Web with express server #138
- upgrade graphql-java to version 8.0 #137
- remove unused properties from light-graphql-4j template #136
- remove unused properties from server and service templates of hybrid #135
- remove commons-text dependency and unused properties from light-rest-4j templates #134
- refactor codegen-web to take advantages of exchange access in hybrid handler #126
- codegen web generate handler only returns zip file name and not content #112
Merged pull requests:
- #176 support seperate enum classes #177 (auahmed)
- Removing commas from datasource config in service.yml templates. #156 (NicholasAzar)
- Updating view design to match doc site and supporting resources from codegen web light server #151 (NicholasAzar)
- Fixes #147, Fixes #146 #148 (b-gyula)
- fixes #143 #144 (b-gyula)
- get the latest from develop branch #142 (chenyan71)
- get the latest from develop #132 (chenyan71)
1.5.11
1.5.11 (2018-04-01)
Implemented enhancements:
- change the interface for handler with light-hybrid-4j #124
Fixed bugs:
- Codegen-Web generate code does not return anything to the UI #122
- fix request schema for generate request #111 (auahmed)
Closed issues:
- gracefully handle oneOf, anyOf and allOf in model generation #131
- replace jackson data type jsr310 with jdk8 #129
- update hybrid handler interface to add exchange as parameter #128
- remove parent section in pom.xml for all generators #127
- replace test openapi.json for openapi generator #125
- console output successful message after code generation #123
- skip path item parameters array in swagger generator #120
- handle dash in the path and dash in enum for openapi generator #119
- openapi generator check if examples map is not empty #118
- upgrade light-rest-4j openapi generator openapi-parser version to 1.5.11 #117
- handle OpenAPI 3.0 multiple examples in response #116
- server info scope injection only works with clientCredentials grant flow #114
- github scanner found a potential vulnerability in moment.js #113
- update codegen web service.yml to remove openapi-parser injection #110
- codegen-web cannot be published to maven central #109
- codegen-web will be compiled as a thin jar not a fat jar #56
Merged pull requests:
- Feature/refactor exchange responses #130 (NicholasAzar)
- feat(zip): Returning zip file for download from codegen-web generator #121 (NicholasAzar)
- Fix: Bump version of moment dependency #115 (gonzalovazquez)
1.5.10
1.5.9
1.5.9 (2018-02-21)
Closed issues:
- update server.yml to add dynamic port support #107
- generate build.sh for easy docker build with version #106
- move Dockerfile into docker folder #105
- enable travis ci only on master branch #102
- add rxjava 2.x dependency for light-graphql-4j template #101
- Help options (--help) should be made available #83
- Add build.sh template for docker build in generated project #70
Merged pull requests:
- Adding help option and descriptions to codegen-cli parameters. #104 (NicholasAzar)
1.5.8
1.5.7
1.5.6
1.5.6 (2017-12-31)
Fixed bugs:
- The cli treat graphqls model file as JSON for light-graphql-4j generator #92
Closed issues:
- Add emailPassword to secret.yml for release 1.5.6 #98
- Fixes maven build warnings #97
- remove prerequisites maven version #96
- Update client.yml for client_id, client_secret and server_url #95
- Add bootstrapFromKeyService to false as default in security.yml #94
- Add keyClientSecret in secret.yml for service to access key distribution service in light-oauth2 #93
- Following docs to generate code openapi scaffolding #91
- OpenAPI validators are not loaded correctly on codegen-cli #90
- Allow codegen to generate code without security definitions being required #82
1.5.4
1.5.4 - 2017-11-20
Added
Changed
- fixes #89 Switch to service IoC injection from Java SPI
- fixes #88 Add OpenAPI generator to SPI config file
- fixes #87 Split RestGenerator to SwaggerGenerator and OpenApiGenerator
- fixes #86 Update all generators to replace Java Service Provider with service.yml
- Upgrade to light-4j 1.5.4
- Upgrade to light-rest-4j 1.5.4
- Upgrade to light-graphql-4j 1.5.4
- Upgrade to openapi-parser 1.5.4
- Upgrade to light-hybrid-4j 1.5.4
Upgrade Guide
If you have used the previous version of light-codegen to scaffold project, there are two changes that are made in this release.
- The framework name for light-rest-4j has been changed to swagger and openapi to support both Swagger 2.0 and OpenAPI 3.0 specifications.
- The config.json for generator has been change in the database section. The previous version looks like this.
{
"name": "apid",
"version": "1.0.0",
"groupId": "com.networknt",
"artifactId": "apid",
"rootPackage": "com.networknt.apid",
"handlerPackage":"com.networknt.apid.handler",
"modelPackage":"com.networknt.apid.model",
"overwriteHandler": true,
"overwriteHandlerTest": true,
"overwriteModel": true,
"httpPort": 7004,
"enableHttp": true,
"httpsPort": 7444,
"enableHttps": true,
"enableRegistry": false,
"supportOracle": false,
"supportMysql": false,
"supportPostgresql": false,
"supportH2ForTest": false,
"supportClient": true
}
And in this release it has been changed to
{
"name": "petstore",
"version": "1.0.1",
"groupId": "com.networknt",
"artifactId": "petstore",
"rootPackage": "com.networknt.petstore",
"handlerPackage":"com.networknt.petstore.handler",
"modelPackage":"com.networknt.petstore.model",
"overwriteHandler": true,
"overwriteHandlerTest": true,
"overwriteModel": true,
"httpPort": 8080,
"enableHttp": true,
"httpsPort": 8443,
"enableHttps": false,
"enableRegistry": false,
"supportDb": true,
"dbInfo": {
"name": "mysql",
"driverClassName": "com.mysql.jdbc.Driver",
"jdbcUrl": "jdbc:mysql://mysqldb:3306/oauth2?useSSL=false",
"username": "root",
"password": "my-secret-pw"
},
"supportH2ForTest": false,
"supportClient": false
}
Note that there is only one database is supported and if supportDb is true, you need the optional section of dbInfo to define the parameters. If supportDb is false, then there is on need to have dbInfo section.