openapistack / openapi-client-axios

JavaScript client library for consuming OpenAPI-enabled APIs with axios
https://openapistack.co
MIT License
556 stars 67 forks source link

typegen - update dtsgenerator #168

Closed wss534857356 closed 11 months ago

wss534857356 commented 11 months ago

Currently it is not possible to correctly support ref targets after urlencode, but I experimented and dtsgenerate 3.19.1 can solve it.

The $ref targets root is not found: #/definitions/%E5...

adamschoenemann commented 11 months ago

Bump! However, it seems to be a little complex. @anttiviljami/dtsgenerator is no longer updated, rather it seems that at some point the underlying repo is now published to simply dtsgenerator. typegen relies on a method DtsGenerator.getExports which was at some point removed (the version history is no longer readily available, it seems). I'm sure there's a workaround, either by re-introducing that functionality (which is very simple), or through a dtsgenerator plugin. However, I don't have the time at present to investigate further, and I'm not familiar with the code in either repo. I'm sure @anttiviljami could fix something up in no time, though :).

anttiviljami commented 11 months ago

Hi! I've just updated dtsgenerator to latest from upstream. Hope this solves your problem!

Please update to openapi-client-axios-typegen@7.4.0 to apply.

Closing issue

adamschoenemann commented 11 months ago

Awesome! Thanks a bunch