Openapi-generator: [BUG] typescript-angular package.json missing

Created on 14 Jun 2020  路  4Comments  路  Source: OpenAPITools/openapi-generator

Bug Report Checklist

  • [ ] Have you provided a full/minimal spec to reproduce the issue?
  • [ ] Have you validated the input using an OpenAPI validator (example)?
  • [x] What's the version of OpenAPI Generator used?
  • [x] Have you search for related issues/PRs?
  • [x] What's the actual output vs expected output?
  • [ ] [Optional] Bounty to sponsor the fix (example)
Description

The typescript-angular generator does have a package.mustache file but no package.json is generated.

openapi-generator version
openapi-generator-cli 5.0.0-SNAPSHOT
  commit : 3f38684
  built  : 2020-06-14T10:20:10Z
  source : https://github.com/openapitools/openapi-generator
  docs   : https://openapi-generator.tech/

OpenAPI declaration file content or url

any

Command line used for generation
generate  -i any_openapi.json -g typescript-angular 
Suggest a fix

One of:

  • Remove the package.mustache and references (at least in README)
  • Actually
TypeScript Bug

All 4 comments

馃憤 Thanks for opening this issue!
馃彿 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

@macjohnny the README.md lists to use npm install as first step - with won't work without the package.json. So maybe remove that part of the readme? Or point out that npmName is missing?

You are right, The readme could be improved. However, it is recommended to look at the generated code as well

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renskesterrenburg picture renskesterrenburg  路  27Comments

TiFu picture TiFu  路  70Comments

wing328 picture wing328  路  25Comments

MartinDelille picture MartinDelille  路  35Comments

coder82 picture coder82  路  26Comments