wcandillon / swagger-js-codegen

A Swagger Codegen for typescript, nodejs & angularjs
Apache License 2.0
693 stars 286 forks source link

Wrap default parameters in a string if the input is type of string #219

Open alexvision opened 6 years ago

alexvision commented 6 years ago

This fixes an issue where default parameters if they were strings were output as an unwrapped string. This could potentially have some more complex a check rather than just looking for the parameter type, but this should cover most cases assuming valid parameters are used.