forked from loafle/openapi-generator-original
Fixing an issue that was causing incorrect JSON key names
This commit is contained in:
parent
0247f0774d
commit
df93ca80f7
@ -20,6 +20,7 @@ namespace {{packageName}}.Model {
|
|||||||
/// </summary>{{#description}}
|
/// </summary>{{#description}}
|
||||||
/// <value>{{{description}}}</value>{{/description}}
|
/// <value>{{{description}}}</value>{{/description}}
|
||||||
[DataMember(Name="{{baseName}}", EmitDefaultValue=false)]
|
[DataMember(Name="{{baseName}}", EmitDefaultValue=false)]
|
||||||
|
[JsonProperty(PropertyName = "{{baseName}}")]
|
||||||
public {{{datatype}}} {{name}} { get; set; }
|
public {{{datatype}}} {{name}} { get; set; }
|
||||||
|
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user