-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Not able to use the orval API. #129
Comments
Hello, sorry for your problem. With version 5, orval support multi-files when I read the other files I also try to resolve them as open API files. Which cause a problem in your case. I updated your specification to solve the problem (spec). I will think about a better solution in the future but at the moment it's the only solution sorry :(. |
@anymaniax, thank you for your response. It does generate the file now. However, I have not used it yet. I am going to try now to thank you first for your work. Is it possible to make it work with |
Thank you @anymaniax , I will take a look |
Hello @anymaniax , I tried using it again with configuration file, and now it fails with the following error. I used the same files that you added to GitHub gist earlier.
The latest code is available on the branch https://github.com/hhimanshu/rapid-front-end-development/tree/openapi3 |
And if I use it without
My intention is to generate TypeScript code with react-query and msw at this time. Let me know if I have missed something. Thanks |
Can you try with the |
Hey @anymaniax , thanks for the fix. It now generates methods. I have been able to use them as well. One oddity that I found was that it did not honor the config to create a file of my choice
In config, I mentioned I want name of Do you know if I am missing something? Also, how does |
I figured how to use fake data using |
Hello, it's because you use the mode tags-split. You maybe want the default mode 'single'? or 'split' depending on if you are using the mock. |
Thank you @anymaniax, with |
Hello @anymaniax,
I am interested in using orval and also gave it a shot. Unfortunately, it did not work even for a single time. I wonder if I am unsure about using Orval at all.
My spec is available at https://github.com/hhimanshu/rapid-front-end-development/tree/openapi3/src/openapi for the context.
I will fill the sections next
What are the steps to reproduce this issue?
I run the following command
This does not give me any indication on what went wrong, no debug logs either
What happens?
It fails it
Oups
. I also tried with a specific version, not sure if that is stable, but that doesn't works eitherWhat were you expecting to happen?
I expected for API and models to be generated for TypeScript and React-Query
Any logs, error output, etc?
I added all of what I saw above, and I hope that helps.
Any other comments?
Do you see any issues in my approach? Does Orval only work if the
$ref
is in the same file? How can I resolve this issue my friend?Thank you
What versions are you using?
Operating System: Mac 10.15.7
Package Version:
Browser Version: N/A since I am not doing anything related to browser, yet.
The text was updated successfully, but these errors were encountered: