Support generating types only #2489
Georgegriff
started this conversation in
General
Replies: 2 comments
-
|
Hello @Georgegriff, did you trye to only put the schemas property in the output? It should work like that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@anymaniax if you do that you just get If you just do this output: "string/to/file" you still get the code that contains axios |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use case: We want all the runtime code checked into the repo, we want to be able to review this code for breakages.
But for types we feel like that's less necessary and can't generate at npm install time/in CI
You can
kind ofdo it like this:And then run the appropriate configs in scripts
The only issue this generates a default http client too, its not a deal breaker it just leads to un-used code
Happy to hear if there are better ways of achieving this, or suggestions on how to implement and i could look at PR, unless its not something orval is interested in
Beta Was this translation helpful? Give feedback.
All reactions