OpenAPITools / OpenAPITools/openapi-generator
[BUG] DefautCodegen warning when using typescript-angular generator (The value (generator's option) must be either boolean or string)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
The warning below is displayed when using typescript-angular generator:
[main] WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to
false.
openapi-generator version
At least 7.1.0 and 7.2.0
Steps to reproduce
npx @openapitools/openapi-generator-cli generate -i api.json -o outdir -g typescript-angular
will display the warning below, with any OpenAPI input (see below):
[main] WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to
false.
Works without warning with other generators (say 'java': npx @openapitools/openapi-generator-cli generate -i api.json -o outdir -g java )
(An example api.json to reproduce, taken from https://support.smartbear.com/swaggerhub/docs/en/get-started/openapi-3-0-tutorial.html
openapi: 3.0.0
info:
version: 1.0.0
title: Simple Artist API
description: A simple API to illustrate OpenAPI concepts
servers:
- url: https://example.io/v1
# Basic authentication
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
security:
- BasicAuth: []
paths: {}
)
Related issues/PRs
Other generators seem to have similar warnings. See https://github.com/OpenAPITools/openapi-generator/issues/9008
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 running the reported npx @openapitools/openapi-generator-cli command with the supplied OpenAPI example and the typescript-angular generator. Trace the [main] WARN from DefaultCodegen and compare it with the java generator; done means the typescript-angular generation completes without this warning for the reproduced input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, java, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100