swagger-api/swagger-codegen

node.js generator can create invalid package.json files

Open

#2,088 opened on Feb 9, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)HTML (12,701 stars) (5,474 forks)batch import
Enhancement: GeneralServer: Nodejshelp wanted

Description

We need to properly escape the name, and version as well.

For instance:

name: "it's bad",
version: "1"

Will give an error on the name and the version as well.

Reported by @kesh92

Contributor guide