-
Notifications
You must be signed in to change notification settings - Fork 4
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
[ERROR] package.json already exists at package.json #41
Comments
@gustawdaniel thanks for your detailed report. It is indeed frustrating when you try something and it just doesn't work. I do think the Re: schema: {} Is it correct that an empty schema should be treated as an object? The generated code for an object with no properties won't be very useful. Are you sure about that? The I suspect you wanted to use the node generator but switched to the web generator ( I hope your API journey has gone well! |
I started from command
and had errors
but on this command
I had
so I tried this one
and seen
I changed to
also without success
In next step I removed my
package.json
and tried withinit
again. Then I reverted my package.jsonI suggest to rather append
to devDependencies and
to scripts than override existing package.json
then I changed config.yml to
and seen
I have in my schema
I i decided to omit them entirely. Did not helped.
Then I changed
to less restrictive
code was generated but I had further problems
abab
dependency (it is not used btw)node-fetch
dependency because node from 18 support fetch nativelyI changed generator to
typescript-fetch-client-generator
and then I had next problem
I could not use
because
DefaultApi
is not exported.I did not solved this problem and when I saw
I understood that I have to give up.
I wish you success with this library. I think your approach is much better that in original
openapi-generator
. But there is a lot to do to simplify it and document. I hope that this report will be useful to understand what problems have your users. Probably many of them consider option of migrate fromopenapi-generator
toopenapi-generator-plus
and simplifying this process substantially increase chance for mass adoption of this project.The text was updated successfully, but these errors were encountered: