swagger-api/swagger-codegen

Underscore prefix dropped from property names in generated Node Typescript classes

Ouverte

#2 766 ouverte le 3 mai 2016

 (7 commentaires) (0 réaction) (0 personne assignée)HTML (5 474 forks)batch import
Client: TypeScriptIssue: Bughelp wanted

Métriques du dépôt

Stars
 (12 701 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur