Codegen generates a number of configuration files, with their associated default values.
For example: server.yml
...
httpsPort: 8443
enableHttps: true
...
Some of these values must change between the different test phases, all the way to production.
to this end, the Config module has been changed recently to support variables, which can be changed between environments.
This issue wishes to assist developers by generating the variables for each of these elements, together with the associated default values.
Teams can decide whether they wish to use these variables and change the defaults or not.
The newly generated files will look similar to:
...
httpsPort: ${server.httpsPort:8443}
enableHttps: ${server.enableHttps:true}
...
and use a clear and unique naming convention, based on .
The change is backwards compatible 100%
The need arises from the discussions associated with the following PR as well as the desire from large consumers to set specific values per environment:
networknt/light-rfcs#7
Codegen generates a number of configuration files, with their associated default values.
For example: server.yml
...
httpsPort: 8443
enableHttps: true
...
Some of these values must change between the different test phases, all the way to production.
to this end, the Config module has been changed recently to support variables, which can be changed between environments.
This issue wishes to assist developers by generating the variables for each of these elements, together with the associated default values.
Teams can decide whether they wish to use these variables and change the defaults or not.
The newly generated files will look similar to:
...
httpsPort: ${server.httpsPort:8443}
enableHttps: ${server.enableHttps:true}
...
and use a clear and unique naming convention, based on .
The change is backwards compatible 100%
The need arises from the discussions associated with the following PR as well as the desire from large consumers to set specific values per environment:
networknt/light-rfcs#7