You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Client templates reference a single OpenAPI reference which is used to set the token or headers.
An example where this approach fails is trying to contact two API's with the same generated codegen, we frequently do this e.g. from staging to live environment stagingapi.product.com -> api.product.com and there isn't really a workaround other than set the token before every request.
This does lead on to the question as to why the client functions are templated as statics, I believe having to instance the clients and provide the configuration would work better with DI and testing frameworks.
Ziaunys, eirikurn, MarcPorciuncula, jacobe, assapir and 14 more