feat: add a way to provide an axios instance
When using the axios client, I'd like to be able to provide an axios instance. The way to do in the doc is to define a global constant which is then used globally. This is a problem because it allows only a single instance of the client in the application and it's potentially prone to security issues.
With this, we can create an instance of axios an pass it as an argument like the following
const instance = axios.create({ headers: { Authentication: 'Bearer foo' } });
const api = createClient();
return api(instance);
Fix https://github.com/orval-labs/orval/issues/653
this looks pretty good to me build is running now
sorry do a git pull from main please
I rebased 😉
running build again
ok it looks like it is failing the samples check you might want to run yarn update-samples then yarn test:samples
@melloware should be fixed now 🤔
Parameter 'axios' cannot reference itself.
I will come with a proper fix today or tomorrow 😉