forked from loafle/openapi-generator-original
minor fix to docstring in csharp
This commit is contained in:
parent
94f86613a3
commit
f521d6e166
@ -25,6 +25,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <param name="tempFolderPath">Temp folder path</param>
|
/// <param name="tempFolderPath">Temp folder path</param>
|
||||||
/// <param name="dateTimeFormat">DateTime format string</param>
|
/// <param name="dateTimeFormat">DateTime format string</param>
|
||||||
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
|
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
|
||||||
|
/// <param name="userAgent">HTTP user agent</param>
|
||||||
public Configuration(ApiClient apiClient = null,
|
public Configuration(ApiClient apiClient = null,
|
||||||
Dictionary<String, String> defaultHeader = null,
|
Dictionary<String, String> defaultHeader = null,
|
||||||
string username = null,
|
string username = null,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
public enum {{vendorExtensions.plainDatatypeWithEnum}} {
|
public enum {{vendorExtensions.plainDatatypeWithEnum}} {
|
||||||
{{#allowableValues}}{{#enumVars}}
|
{{#allowableValues}}{{#enumVars}}
|
||||||
[EnumMember(Value = "{{jsonname}}")]
|
[EnumMember(Value = "{{jsonname}}")]
|
||||||
{{name}}{{^-last}},
|
{{name}}{{^-last}},
|
||||||
|
@ -20,9 +20,13 @@ namespace {{packageName}}.Model
|
|||||||
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
|
public partial class {{classname}} : {{#parent}}{{{parent}}}, {{/parent}} IEquatable<{{classname}}>
|
||||||
{ {{#vars}}{{#isEnum}}
|
{ {{#vars}}{{#isEnum}}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
||||||
|
/// </summary>{{#description}}
|
||||||
|
/// <value>{{{description}}}</value>{{/description}}
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
{{>enumClass}}{{/isEnum}}{{#items.isEnum}}{{#items}}
|
{{>enumClass}}{{/isEnum}}{{#items.isEnum}}{{#items}}
|
||||||
{{>enumClass}}{{/items}}{{/items.isEnum}}{{/vars}}
|
{{>enumClass}}{{/items}}{{/items.isEnum}}{{/vars}}
|
||||||
{{#vars}}{{#isEnum}}
|
{{#vars}}{{#isEnum}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
/// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
||||||
|
@ -60,6 +60,15 @@ namespace IO.Swagger.Test
|
|||||||
// TODO: unit test for the property '_Name'
|
// TODO: unit test for the property '_Name'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'SnakeCase'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void SnakeCaseTest()
|
||||||
|
{
|
||||||
|
// TODO: unit test for the property 'SnakeCase'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ namespace IO.Swagger.Client
|
|||||||
/// <param name="tempFolderPath">Temp folder path</param>
|
/// <param name="tempFolderPath">Temp folder path</param>
|
||||||
/// <param name="dateTimeFormat">DateTime format string</param>
|
/// <param name="dateTimeFormat">DateTime format string</param>
|
||||||
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
|
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
|
||||||
|
/// <param name="userAgent">HTTP user agent</param>
|
||||||
public Configuration(ApiClient apiClient = null,
|
public Configuration(ApiClient apiClient = null,
|
||||||
Dictionary<String, String> defaultHeader = null,
|
Dictionary<String, String> defaultHeader = null,
|
||||||
string username = null,
|
string username = null,
|
||||||
|
@ -18,6 +18,10 @@ namespace IO.Swagger.Model
|
|||||||
public partial class InlineResponse200 : IEquatable<InlineResponse200>
|
public partial class InlineResponse200 : IEquatable<InlineResponse200>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// pet status in the store
|
||||||
|
/// </summary>
|
||||||
|
/// <value>pet status in the store</value>
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
|
|||||||
Sold
|
Sold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// pet status in the store
|
/// pet status in the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -23,10 +23,12 @@ namespace IO.Swagger.Model
|
|||||||
/// Initializes a new instance of the <see cref="Name" />class.
|
/// Initializes a new instance of the <see cref="Name" />class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="_Name">_Name.</param>
|
/// <param name="_Name">_Name.</param>
|
||||||
|
/// <param name="SnakeCase">SnakeCase.</param>
|
||||||
|
|
||||||
public Name(int? _Name = null)
|
public Name(int? _Name = null, int? SnakeCase = null)
|
||||||
{
|
{
|
||||||
this._Name = _Name;
|
this._Name = _Name;
|
||||||
|
this.SnakeCase = SnakeCase;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +39,12 @@ namespace IO.Swagger.Model
|
|||||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||||
public int? _Name { get; set; }
|
public int? _Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or Sets SnakeCase
|
||||||
|
/// </summary>
|
||||||
|
[DataMember(Name="snake_case", EmitDefaultValue=false)]
|
||||||
|
public int? SnakeCase { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the string presentation of the object
|
/// Returns the string presentation of the object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -46,6 +54,7 @@ namespace IO.Swagger.Model
|
|||||||
var sb = new StringBuilder();
|
var sb = new StringBuilder();
|
||||||
sb.Append("class Name {\n");
|
sb.Append("class Name {\n");
|
||||||
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
sb.Append(" _Name: ").Append(_Name).Append("\n");
|
||||||
|
sb.Append(" SnakeCase: ").Append(SnakeCase).Append("\n");
|
||||||
|
|
||||||
sb.Append("}\n");
|
sb.Append("}\n");
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
@ -87,6 +96,11 @@ namespace IO.Swagger.Model
|
|||||||
this._Name == other._Name ||
|
this._Name == other._Name ||
|
||||||
this._Name != null &&
|
this._Name != null &&
|
||||||
this._Name.Equals(other._Name)
|
this._Name.Equals(other._Name)
|
||||||
|
) &&
|
||||||
|
(
|
||||||
|
this.SnakeCase == other.SnakeCase ||
|
||||||
|
this.SnakeCase != null &&
|
||||||
|
this.SnakeCase.Equals(other.SnakeCase)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,6 +119,9 @@ namespace IO.Swagger.Model
|
|||||||
if (this._Name != null)
|
if (this._Name != null)
|
||||||
hash = hash * 59 + this._Name.GetHashCode();
|
hash = hash * 59 + this._Name.GetHashCode();
|
||||||
|
|
||||||
|
if (this.SnakeCase != null)
|
||||||
|
hash = hash * 59 + this.SnakeCase.GetHashCode();
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,10 @@ namespace IO.Swagger.Model
|
|||||||
public partial class Order : IEquatable<Order>
|
public partial class Order : IEquatable<Order>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Order Status
|
||||||
|
/// </summary>
|
||||||
|
/// <value>Order Status</value>
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
|
|||||||
Delivered
|
Delivered
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Order Status
|
/// Order Status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -18,6 +18,10 @@ namespace IO.Swagger.Model
|
|||||||
public partial class Pet : IEquatable<Pet>
|
public partial class Pet : IEquatable<Pet>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// pet status in the store
|
||||||
|
/// </summary>
|
||||||
|
/// <value>pet status in the store</value>
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -31,6 +35,7 @@ namespace IO.Swagger.Model
|
|||||||
Sold
|
Sold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// pet status in the store
|
/// pet status in the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||||
<MonoDevelop.Ide.Workbench ActiveDocument="TestPet.cs">
|
<MonoDevelop.Ide.Workbench ActiveDocument="TestPet.cs">
|
||||||
<Files>
|
<Files>
|
||||||
<File FileName="TestPet.cs" Line="218" Column="47" />
|
<File FileName="TestPet.cs" Line="23" Column="17" />
|
||||||
<File FileName="TestOrder.cs" Line="1" Column="1" />
|
<File FileName="TestOrder.cs" Line="1" Column="1" />
|
||||||
</Files>
|
</Files>
|
||||||
</MonoDevelop.Ide.Workbench>
|
</MonoDevelop.Ide.Workbench>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user