[BUG] Unable to extract template
See original GitHub issueBug 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:
- Created 2 years ago
- Reactions:9
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
Verified fixed with https://github.com/OpenAPITools/openapi-generator-cli/releases/tag/v2.4.0