swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

New fork `swagger-typescript-api-nextgen` with extra features and fixes

Open grandsilence opened this issue 2 years ago • 3 comments

Please check out my fork: swagger-typescript-api-nextgen, maybe it will be useful for those who need a secure version with updated dependencies, as well as support for current axios and other fixes.

The package is present in the npm (swagger-typescript-api-nextgen).

✨ The fork key differences

  • Axios v0.27.2+ support
  • Updated dependencies to eliminate vulnerabilities
  • Merged features and fixes from next to master and some commits from origin pull requests:
    • Docs: added "generateClient", "typePrefix", "typeSuffix" options to readme for NodeJS usage (#335)
    • Feature: add an option to disable throwing an error when request.ok is not true (#297)
    • Feature: add a parameter to sort types and types properties (#299)
    • Feature: load prettier config from your project by default (#286)
    • Feature: allow passing "patch" option to "swagger2openapi" (#283)
    • Fix: missing title of object type (#303)
    • Fix: reject and exit with code 1 if error (#295)
    • Fix: missing extractRequestBody field in type
    • Fix: problem with missing HttpResponse type with --to-js option
    • Fix: unable to cancel fetch request with AbortSignal (#329)

grandsilence avatar May 16 '22 21:05 grandsilence

Is there a reason these changes aren't a PR for swagger-typescript-api project?

andersfylling avatar May 25 '22 18:05 andersfylling

@andersfylling PR for a long time aren't accepted, the project seems to be abandoned.

grandsilence avatar May 25 '22 18:05 grandsilence

Looks like recently, activity is returning to this repo. Maybe this would be a good time to have the changes merged back into this original repo?

bartvanandel avatar Aug 25 '22 16:08 bartvanandel

Hi @grandsilence , your fork looks good !
This project is not abandoned, just I didn't have time to work on it :)
If you want to improve your fork, please merge the latest version of swagger-typescript-api, cause I fixed a lot of bugs and add a lot of features :)

js2me avatar Oct 28 '22 19:10 js2me