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

[Question] How to provide a path to openapitools.json? #644

Open
yurakhomitsky opened this issue Apr 18, 2022 · 8 comments · May be fixed by vAHiD55555/generative-ai#3
Open

[Question] How to provide a path to openapitools.json? #644

yurakhomitsky opened this issue Apr 18, 2022 · 8 comments · May be fixed by vAHiD55555/generative-ai#3

Comments

@yurakhomitsky
Copy link

In my project, I'm building two middlewares, for that, I have created two different configs files
image

To build middlewares the openapitools.json configs are being copied, built, and removed one by one.

What I'm trying to do is to create an npm command that will build middlewares with the provided path to the openapitools.json

Is it possible to provide a path to the openapitools.json?

@jcolladosp
Copy link

Hi @yurakhomitsky , did you find an answer for that?
Thanks

@skopz356
Copy link

skopz356 commented Jul 19, 2023

Is there any update on this?

@yurakhomitsky
Copy link
Author

@skopz356 @jcolladosp I did not find a solution. I have tried providing a path to config using "-c" property but no luck.

The other option could be the following: is to move all the generators into a single config and then switch version in the npm command

"scripts": {
    "generate:api": "openapi-generator-cli version-manager set 5.3.0 && openapi-generator-cli generate"
  },

@jchatrny
Copy link

Same issue here, when i provide -c parameter it still creates openapitools.json file in root (where im running command from).

I'd like to execute command from root and configuration have in subfolder. I'm using NX and my configuration is related to one specific module

@yurakhomitsky
Copy link
Author

Same issue here, when i provide -c parameter it still creates openapitools.json file in root (where im running command from).

I'd like to execute command from root and configuration have in subfolder. I'm using NX and my configuration is related to one specific module

Maybe you could go ahead and create bug/feature. I dont think any of the developers have looked at my question

@yurakhomitsky
Copy link
Author

yurakhomitsky commented Oct 19, 2023

@kay-schecker, @wing328 any ideas?

@mmorgan4x
Copy link

instead of -c i used --openapitools and it worked

@hansbala
Copy link

instead of -c i used --openapitools and it worked

Worked for me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants
@mmorgan4x @jcolladosp @hansbala @skopz356 @yurakhomitsky @jchatrny and others