Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config parameterization fix #317

Merged
merged 5 commits into from
Jul 1, 2019
Merged

Conversation

jiachen1120
Copy link
Contributor

Related issue: #314
Related RFC: https://github.com/networknt/light-rfcs/pull/34/files

  • Disabled post-process parameterization
  • Move handlerconfig into templates
  • Parameterize the templates

TODO: move parameterize method into codegen-cli

Currently, the templates are parameterized statically. The next step is to move parameterize method into codegen-cli

- Move handlerconfig into templates
- Parameterize the templates

TODO: move parameterize method into codegen-cli
@jiachen1120 jiachen1120 changed the title Step1 of config parameterization fix Config parameterization fix Jun 26, 2019
@jiachen1120
Copy link
Contributor Author

Hello all! The TODO mentioned above has been finished. Currently, the parameterized method has been moved into codeine-cli (same to the RFC: https://github.com/networknt/light-rfcs/pull/34/files)

i.e.
If using the following commend line with -p

condegen-cli -f openapi -p /paramConfigs ...

All the config files inside the dir /paramConfigs will be parameterized and copy to the destination config folder. Look forward to your reviews and suggestion. After that, corresponding documents will be updated :)

@jiachen1120 jiachen1120 changed the base branch from master to 1.6.x June 26, 2019 19:19
Copy link
Contributor

@stevehu stevehu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice. I am going to merge it now. Please update the document when possible. Thanks.

@stevehu stevehu merged commit 8e31d59 into 1.6.x Jul 1, 2019
@stevehu stevehu deleted the fix/#314-config-parameterization branch July 1, 2019 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants