Multiple swagger docs, single config? #722
Replies: 2 comments 11 replies
-
I was also wondering this. Im going to need multiple openapi.yaml files. Can i use multiuple orval config files? |
Beta Was this translation helpful? Give feedback.
-
@gavinthomas-valtech To clarify what I said earlier here is a better example of what I currently have set up: I have a script called generate-orval.sh which I call in the command line for example. Inside has the following:
This loops around my repo's api folder looking for my yml files which are my openapi specs and calls orval with the path of that file as an argument.
The first and second lines are taking the arguments into the orval config. This is then used in the target and runs against that specific yaml file I passed in. Some more info about process.argv can be found here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have over 100 different API endpoints on my backend, each with a separate Swagger doc. Is there a way within the config to find all the swagger docs, perhaps with a wildcard, and generate types for them without having to manually type each one out?
Beta Was this translation helpful? Give feedback.
All reactions