mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
Revert "Updates to csharp model template to support inheritance"
This reverts commit 5f1df9e093
.
This commit is contained in:
parent
60b0ffeb0e
commit
2fced0f634
@ -13,7 +13,7 @@ namespace {{package}} {
|
|||||||
/// {{description}}
|
/// {{description}}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataContract]
|
[DataContract]
|
||||||
public class {{classname}}{{#parent}} : {{{parent}}}{{/parent}} {
|
public class {{classname}} {
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
{{#description}}/* {{{description}}} */{{/description}}
|
{{#description}}/* {{{description}}} */{{/description}}
|
||||||
[DataMember(Name="{{baseName}}", EmitDefaultValue=false)]
|
[DataMember(Name="{{baseName}}", EmitDefaultValue=false)]
|
||||||
@ -39,11 +39,11 @@ namespace {{package}} {
|
|||||||
/// Get the JSON string presentation of the object
|
/// Get the JSON string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>JSON string presentation of the object</returns>
|
/// <returns>JSON string presentation of the object</returns>
|
||||||
public {{#parent}} new {{/parent}}string ToJson() {
|
public string ToJson() {
|
||||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
{{/model}}
|
{{/model}}
|
||||||
{{/models}}
|
{{/models}}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user