Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Required option '-i' is missing when running spec:regen #1619

Open
ADR-Clizy opened this issue Apr 10, 2024 · 0 comments
Open

[Bug]: Required option '-i' is missing when running spec:regen #1619

ADR-Clizy opened this issue Apr 10, 2024 · 0 comments
Labels
bug Something isn't working priority:high

Comments

@ADR-Clizy
Copy link

ADR-Clizy commented Apr 10, 2024

Package name

schematics

Package version

10.1.1

Reproduction steps

I created a SDK and failed relative path of my .yaml.

So in order to regen the spec, I copy paste my yaml in root sdk directory and renamed it as "swagger-spec.yaml".

Then I ran

npm run spec:regen --workspace=@irs/sdk

Current result

The output is :

UPDATE swagger-spec.yaml (1988 bytes)
[error] Required option '-i' is missing
Error: OpenApiGeneratorCli failed to run OpenApiGenerator with command 'openapi-generator-cli generate --custom-generator=C:\embedded_insurance\irs-frontend\node_modules\@ama-sdk\schematics\schematics\typescript\core\openapi-codegen-typescript\target\typescriptFetch-openapi-generator.jar --generator-key irs-sdk'
npm ERR! Lifecycle script `generate` failed with error: 
npm ERR! Error: command failed
npm ERR!   in workspace: @irs/sdk@0.0.0-placeholder
npm ERR!   at location: C:\embedded_insurance\irs-frontend\libs\irs-sdk
npm ERR! Lifecycle script `spec:regen` failed with error: 
npm ERR! Error: command failed
npm ERR!   in workspace: @irs/sdk@0.0.0-placeholder
npm ERR!   at location: C:\embedded_insurance\irs-frontend\libs\irs-sdk

Expected result

No Error

Additional comments

I ran with the new swagger-spec.yaml :

npm run generate --workspace=@irs/sdk

And it works but after, I tried to regen and had the same error as above.

@ADR-Clizy ADR-Clizy added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high
Projects
None yet
Development

No branches or pull requests

2 participants