openapi-client
openapi-client copied to clipboard
Allow optionally passing spec object into init to override it.
When using this in dev vs prod, we override the spec at build time with a different host and securityDefinition.
The spec object becomes a new optional param to init here.
@johnsusek could please also update service.ts.template with the same changes?
🎉 thanks @johnsusek
done! let me know if I should change anything, I'm not very familiar with typescript