[BUG] "Required option '-i' is missing"
@kay-schecker がすでに取り組んでいます。
2023年3月3日 から。
評価
この issue はまだ評価されていません。
説明
🐛 Bug Report:
Describe the bug
When I run npx openapi-generator-cli generate, I get the following error:
$ npx openapi-generator-cli genera
[error] Required option '-i' is missing
Steps to Reproduce
I'm on v 2.5.2 (latest at time of writing), Cygwin on Windows, Node 14. Here's all relevant info I can think of:
$ npx --version
6.14.17
$ npm --version
6.14.17
$ node --version
v14.20.0
$ npx openapi-generator-cli version
6.0.1
$ grep openapi-generator ../../package.json
"@openapitools/openapi-generator-cli": "^2.5.2",
$ cat openapitools.json
{
"$schema": "../../node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "6.0.0",
"generators": {
"my-spec-gen": {
"generatorName": "typescript-rxjs",
"output": "./generated",
"inputSpec": "./reference/my-spec.yaml"
}
}
}
}
$ npx openapi-generator-cli generate
Download 6.0.1 ...
Downloaded 6.0.1
[error] Required option '-i' is missing
Expected behavior
openapi-generator-cli should invoke openapi-generator-cli with correct args in order to regenerate my models
Operation System (please complete the following information):
- OS: Windows 10, Cygwin
Package System (please complete the following information):
npm 6.14.17, node v14.20.0
I get the same on Node 18
Additional context
This appears to be the same issue described in #43 that is marked fixed.
I was able to work around by invoking Java directly:
java -jar ../../node_modules/@openapitools/openapi-generator-cli/versions/6.0.1.jar generate -i ./reference/my-api.yaml -o generated -g typescript-rxjs
I can't see what's up with openapi-generator-cli or how to diagnose further. I wasn't able to get any diagnostic logs, and the main.js seems minified so I couldn't investigate further.
- 主要言語
- TypeScript
- スター
- 2k
- フォーク
- 209
- 平均マージ
- 9時間 35分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- 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] JAVA_OPTS is incorrectly evaluated再び着手できるかも @kay-schecker が 123 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
OpenAPITools/openapi-generator-cli#1213 · 担当者 1 名 ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version manager再び着手できるかも @kay-schecker が 178 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
OpenAPITools/openapi-generator-cli#1190 · 担当者 1 名 ·
-
[BUG] openapiGeneratorIgnoreList is missing from schema再び着手できるかも @kay-schecker が 228 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
OpenAPITools/openapi-generator-cli#1138 · コメント 1 件 · 担当者 1 名 ·
-
[BUG] Environment variable not found (missing .env loading)再び着手できるかも @kay-schecker が 267 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
OpenAPITools/openapi-generator-cli#1094 · コメント 1 件 · 担当者 1 名 ·
OpenAPITools/openapi-generator-cli の issue をすべて見る
似ている issue
-
keytrace logo svg?オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
cyclofinance/cyclo.site#448 ·
-
[sanity-plugin-media] Searching for a word with an apostrophe shows an error instead of resultsオープン@sanity-io/studio bug sanity-plugin-media Sieve-Agent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pingdotgg/t3code#15221 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信