OpenAPITools / OpenAPITools/openapi-generator
[BUG] OpenAPI Generator: How to fix WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to `false`
Open
Nobody has claimed this yet.
Client: C++
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
I am using the following OpenAPI commands to generate client using openapi-generator:
npx @openapitools/openapi-generator-cli generate -i api.yaml -g cpp-restsdk -o ./outputFolder
After running the command why it shows the following warning:
[main] WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to `false`.
Description
openapi-generator version 5.0.1
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the npx @openapitools/openapi-generator-cli command with openapi-generator 5.0.1 and inspect the DefaultCodegen warning path for the cpp-restsdk generator. Determine which generator option triggers the warning and define done as a confirmed explanation or corrected handling, with a regression test covering the command or option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, java, nodejs
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100