Override the generator #620
-
So I am currently using a custom implementation of OpenAPI spec -> react query which is based on NSwag.CodeGeneration. I’d like to migrate to Orval, but there is currently a blocker. ALL of our endpoints are POST’s. We basically auto generate an “RPC-style” API of business operations. Because every endpoints ends up as a POST, but on the server a developer explicitly implements a Query or a Command, we are able to add a “tag” to the open api spec - “queryType=query/command” I assume I can just import GENERATOR_CLIENT into my own code, and then add my own property like “react-query-custom” where I can then just spread the existing “react-query” and override the “client” function used? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @shainegordon, now you have a @orval/core so you can do whatever you want. You can also use this and if it doesn't feed your need we can still discuss |
Beta Was this translation helpful? Give feedback.
Hello @shainegordon, now you have a @orval/core so you can do whatever you want. You can also use this and if it doesn't feed your need we can still discuss