[BUG] docker version of openapi-generator-cli doesn't recognize `openapitools.json`
@kay-schecker がすでに取り組んでいます。
2025年3月24日 から。
評価
この issue はまだ評価されていません。
説明
🐛 Bug Report:
docker version of openapi-generator-cli doesn't work with configuration files.
Steps to Reproduce
despite the documentation, following doesn't work:
openapitools.json:
{
"$schema": "https://raw.githubusercontent.com/OpenAPITools/openapi-generator-cli/refs/heads/master/apps/generator-cli/src/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.12.0",
"generators": {
"v3.0": {
"inputSpec": "https://touhoudb.com/swagger/v1/swagger.json",
"generatorName": "typescript-fetch",
"output": "#{cwd}/client"
}
}
}
}
podman run --rm -v $PWD:/local:z openapitools/openapi-generator-cli generate
[error] Required option '-i' is missing
even if i explicitly pass in config file, it doesn't read config file despite "generatorName": "typescript-fetch",
podman run --rm -v $PWD:/local:z openapitools/openapi-generator-cli generate --config /local/openapitools.json
Exception in thread "main" java.lang.NullPointerException: generator name must be specified
at java.base/java.util.Objects.requireNonNull(Unknown Source)
at org.apache.commons.lang3.Validate.notEmpty(Validate.java:388)
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:643)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:744)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Expected behavior
docker version works the same like the npm version.
Screenshots
If applicable, add screenshots to help explain your problem.
Operation System (please complete the following information):
- OS: Fedora Linux
- Version 41
Package System (please complete the following information):
- Version rpm 4.20.0
Additional context
Add any other context about the problem here.
- 主要言語
- TypeScript
- スター
- 2k
- フォーク
- 208
- 平均マージ
- 7時間 12分
- マージ済み PR(30日)
- 6
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenAPITools/openapi-generator-cli のほかの issue
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependencies オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 担当者 1 名 ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 担当者 1 名 ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · コメント 1 件 · 担当者 1 名 ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · コメント 1 件 · 担当者 1 名 ·
OpenAPITools/openapi-generator-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TanStack/tanstack.com#1293 ·