Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--make-paths-enum is missing #1057

Closed
Inrixia opened this issue Mar 25, 2023 · 4 comments
Closed

--make-paths-enum is missing #1057

Inrixia opened this issue Mar 25, 2023 · 4 comments
Labels
openapi-ts Relevant to the openapi-typescript library question Further information is requested

Comments

@Inrixia
Copy link

Inrixia commented Mar 25, 2023

After updating from 5.4.1 to 6.x.x the argument --make-paths-enum is no longer working.

As far as I can tell there is no way to get this functionality since the last update? This completely breaks this library for me making it unusable as I need path's as variables that I can actually use.

Is there a reason why this was removed or a way to enable it in the newer version?

@drwpow
Copy link
Contributor

drwpow commented Mar 30, 2023

Correct. Explanation here as to why it was removed: https://github.com/drwpow/openapi-typescript/releases/tag/v6.0.0

@drwpow drwpow added the question Further information is requested label Apr 7, 2023
@drwpow drwpow added the openapi-ts Relevant to the openapi-typescript library label May 22, 2023
@drwpow drwpow closed this as completed Jul 7, 2023
@laurenz-glueck
Copy link

@drwpow I just came across this change which makes it pretty hard to update to v6 if you dependent on the ApiPaths enum in you application.
Is there any workaround?
Or are you planning to bring this back at some point?

@laurenz-glueck
Copy link

@drwpow Just wanted to ask again as I didn't got a response on my previous comment...
Are there any plans to bring back the generation of the ApiPaths enum?

@laurenz-glueck
Copy link

@drwpow I took a closer look at the code and I think I understood why the option was removed...
If I understand the transformers concept correct, then the problem is that the paths are already used for the transformPathsObject transformer right?

Nevertheless, I think it's important for some users to get the ApiPaths enum.

That's why I have created a draft PR that brings back the generation of the ApiPaths enum:
#2052

The PR is definitely just a draft and probably needs some improvements...
But maybe you could take a look at it and give me your feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi-ts Relevant to the openapi-typescript library question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants