kjayasa / swagger-ts-client

A tool to generate typescript http clients and types from swagger definitions
MIT License
27 stars 24 forks source link

Added host and schemes support #16

Closed webmonger closed 5 years ago

webmonger commented 5 years ago

I've added the host and schemes to the URL output if they are presented in the swagger.

I've not bound the host and schemes output to each other which maybe I should have, if you'd prefer that please let me know.

Just fixed the issue where path params would cause query(params) to be added to the request rather than only being constraint to inUrl (Note it might be worth switching the if so it only returns url querystring params rather than excluding specific ones as I think headers and formdata will also cause this bug)

I'm not sure what your preferences are with coding styles so hope this is ok.

kjayasa commented 5 years ago

thanks @webmonger