question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unable to extract template

See original GitHub issue

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What’s the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

I’m following the guidelines here: https://openapi-generator.tech/docs/usage/

I’m unable to extract template.

I run:

openapi-generator-cli author template -g java

I get the following error:

Did set selected version to 5.1.1
[error] Found unexpected parameters: [-g, java]

See 'openapi-generator-cli help' for usage.
openapi-generator version

5.1.1.

OpenAPI declaration file content or url

N/A

Generation Details

n/a

Steps to reproduce
npm i -g @openapitools/openapi-generator-cli
openapi-generator-cli author template -g java
Related issues/PRs
Suggest a fix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
badsyntaxcommented, Aug 23, 2021

@wing328 I don’t understand why this is working for you. I cloned the cli project and ran locally and was still able to reproduce. I’ve added a PR to fix: https://github.com/OpenAPITools/openapi-generator-cli/pull/448

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to resolve project template: Failed to decompress
"Failed to resolve project template: Failed to decompress [C:\Program Files\Unity\Hub\Editor\2019.3. 13f1\Editor\Data\Resources\PackageManager\ ...
Read more >
Room Template Not Working - Adventure Game Studio
This opens up a wizard which just asks for a template name. Unfortunately, no matter what name I type, I get an error...
Read more >
Academic Theme: Failed to extract shortcode: template for ...
Your website repository is missing the academic theme. My guess is, that it was installed as submodule and you missed to add it...
Read more >
Flask raises TemplateNotFound error even though template ...
The error indicates that there is no home.html file in the templates/ directory. Make sure you created that directory in the same directory...
Read more >
Unable to delete Template. Bug or what? - Forums - Liferay
Same Required templates could not be deleted. error. Way3. 1.Replicate same issue in different server : Create a web content, create a structure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found