swagger-api/swagger-codegen
Ver no GitHubDeserialization failed due to change of property name
Open
#4.857 aberto em 26 de fev. de 2017
Client: TypeScriptIssue: Bughelp wanted
Métricas do repositório
- Stars
- (12.701 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Description
The issue is originally reported via https://github.com/swagger-api/swagger-codegen/issues/4805#issuecomment-280615622
For typescript-angular2:
"Request": {
"device_type": {
"type": "string"
},
}
},
generates:
export interface Request {
deviceType?: string;
}
The deserialization does not work as there's no mapping between deviceType and device_type (original attribute name in JSON)
Swagger-codegen version
latest master and 2.3.0
cc @Ondra09, @ataraxus, @Tifu