postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Adds additional option to nodejs-request to generate code gor SDK generator

Open someshkoli opened this issue 4 years ago • 0 comments

Adds SDKGEN_enabled option to code generator

  • Toggles addition of import statements in the snippet
  • If set true uses statement to return response and error
  • Default value - false

Previously the generated snippet with raw body had double quote wrapping. This pr changes it to single quote to have consistency in quotes throughout the generated snippet. Changes:

  • removes json.stringify where not necessary
  • sanitize raw body

someshkoli avatar Jun 08 '20 19:06 someshkoli