swagger-api/swagger-codegen

Underscore prefix dropped from property names in generated Node Typescript classes

Open

#2,766 opened on May 3, 2016

View on GitHub
 (7 comments) (0 reactions) (0 assignees)HTML (12,701 stars) (5,474 forks)batch import
Client: TypeScriptIssue: Bughelp wanted

Description

From @saikatguha on April 29, 2016 22:9

"Foo": {
  "type": "object",
  "properties": {
    "_links": { "$ref": "#/definitions/Bar" }
  }
}

becomes

class Foo {
  "links": Bar;
}

Copied from original issue: swagger-api/swagger-editor#905

Contributor guide

Underscore prefix dropped from property names in generated Node Typescript classes · swagger-api/swagger-codegen#2766 | Good First Issue