The current generation takes a Walmart OpenApi spec and generates the required WM headers on every API function. This is due to how walmart has these required as part of each API call.
It would be great if we could update all these to optional using ts-morph after the generation is finished and then use interceptors to intercept each function call and add these in for the user automatically.
This would make so that we no longer have to do the following
The current generation takes a Walmart OpenApi spec and generates the required
WM
headers on every API function. This is due to how walmart has these required as part of each API call.It would be great if we could update all these to optional using
ts-morph
after the generation is finished and then use interceptors to intercept each function call and add these in for the user automatically.This would make so that we no longer have to do the following
or
and can simply do