mulesoft-labs / raml-client-generator

Template-driven generator of clients for APIs described by a RAML spec
Other
121 stars 27 forks source link

Add ability for global options to be used when client is created #16

Closed brentm5 closed 9 years ago

brentm5 commented 9 years ago

Currently there is no way to override options at the global level. For example if you wanted to set the attribute rejectUnauthorized: false you would have no way to do this. Now this can happen, but the calculated values will override any values so the existing behavior is still intact

blakeembrey commented 9 years ago

Sounds like a good change, would you mind signing the CLA (https://api-notebook.anypoint.mulesoft.com/notebooks#bc1cf75a0284268407e4) before we merge?

brentm5 commented 9 years ago

Alright might take a little bit longer for this to happen. Gotta have someone take a look at that before that can happen. Thanks for the fast response!

blakeembrey commented 9 years ago

I didn't want to go ahead and take this contribution, but when/if you sign the CLA feel free to resubmit the PR at https://github.com/mulesoft-labs/raml-javascript-generator. It's the same code, but the JS client is now separate from this (should allow other people to pick up the generator stuff and trying it without committing to this project).