openapi-client icon indicating copy to clipboard operation
openapi-client copied to clipboard

Allow optionally passing spec object into init to override it.

Open johnsusek opened this issue 7 years ago • 3 comments

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 avatar Sep 27 '18 18:09 johnsusek

@johnsusek could please also update service.ts.template with the same changes?

MariusVolkhart avatar Nov 10 '18 18:11 MariusVolkhart

🎉 thanks @johnsusek

MariusVolkhart avatar Nov 14 '18 17:11 MariusVolkhart

done! let me know if I should change anything, I'm not very familiar with typescript

johnsusek avatar Nov 14 '18 17:11 johnsusek