You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is not responsible for the actual code generation. If you have problems with the code generation, please open the bug at OpenAPITools/openapi-generator.
Please also check if the bug is already known before you open a new bug.
🐛 Bug Report:
Describe the bug
you cant seem to mix a config file with some of the cli options.
In this case I'm trying to set --server-variables=major=2 as the version is determined via script
Exception in thread "main" java.lang.NullPointerException: generator name must be specified
at org.apache.commons.lang3.Validate.notEmpty(Validate.java:395)
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:482)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:573)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:433)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Expected behavior
The cli should use the settings in the config file, with any cli arguments added/overriding the values in the file
Operation System (please complete the following information):
OS: Ubuntu
Version 20
Package System (please complete the following information):
npm 6.14.13
The text was updated successfully, but these errors were encountered:
myrddraall
changed the title
[BUG] setting cli flags causes config file to be ignored
[BUG] setting cli arguments causes config file to be ignored
Jun 2, 2021
Please differentiate the bug
This repository is not responsible for the actual code generation. If you have problems with the code generation, please open the bug at OpenAPITools/openapi-generator.
Please also check if the bug is already known before you open a new bug.
🐛 Bug Report:
Describe the bug
you cant seem to mix a config file with some of the cli options.
In this case I'm trying to set --server-variables=major=2 as the version is determined via script
Steps to Reproduce
Steps to reproduce the behavior:
Config File:
running
openapi-generator-cli generate
woks as expectedrunning
openapi-generator-cli generate --server-variables=major=2
errors with:[error] Required option '-i' is missing
running
openapi-generator-cli generate --server-variables=major=2 --config=openapitools.json
errors with:Expected behavior
The cli should use the settings in the config file, with any cli arguments added/overriding the values in the file
Operation System (please complete the following information):
Package System (please complete the following information):
The text was updated successfully, but these errors were encountered: