Describe the bug
Im probably stupid but client is not exported from services.gen.ts
From docs
import { client } from "../openapi/requests/services.gen";
client.setConfig({
baseUrl: "YOUR_BASE_URL",
throwOnError: true, // If you want to handle errors on `onError` callback of `useQuery` and `useMutation`, set this to `true`
});
client.interceptors.request.use((config) => {
// Add your request interceptor logic here
return config;
});
client.interceptors.response.use((response) => {
// Add your response interceptor logic here
return response;
});
To Reproduce
Just added "codegen": "openapi-rq -i https://raw.githubusercontent.com/7nohe/openapi-react-query-codegen/refs/heads/main/examples/petstore.yaml --client axios", to scripts and run it.
Do not have any client in the generated files.
OpenAPI spec file
Have tried our own but also petstore.yaml same result
Expected behavior
That client is exported or update documentation
- OS: macos
- Version: "@7nohe/openapi-react-query-codegen": "^1.6.2",
Describe the bug
Im probably stupid but
clientis not exported from services.gen.tsFrom docs
To Reproduce
Just added
"codegen": "openapi-rq -i https://raw.githubusercontent.com/7nohe/openapi-react-query-codegen/refs/heads/main/examples/petstore.yaml --client axios",to scripts and run it.Do not have any
clientin the generated files.OpenAPI spec file
Have tried our own but also petstore.yaml same result
Expected behavior
That client is exported or update documentation