Generate clean code? #3313
ricardobeat
started this conversation in
General
Replies: 2 comments 1 reply
|
@anymaniax @soartec-lab ? To me the above code looks like its generating properly i think its just the documentation website that is misleading? |
1 reply
|
@ricardobeat i formatted it for readability, Orval does NOT format code.... it generates code.... and then you choose to format it yourself based on your own projects formatting standards. See: https://orval.dev/docs/reference/configuration/output#formatter |
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.
In the homepage, this example is provided:
But the actual result of setting up orval with
client: 'react-query'is quite different:getListPetsUrlto return a single stringIs there a way to actually generate code closer to what's advertised in that example?
The generated code for the same example, formatting preserved:
All reactions