mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 11:07:07 +00:00
Use multiline comments for examples in csharp generator (#19079)
* multi * gen
This commit is contained in:
@@ -46,14 +46,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
/// <example>1</example>
|
||||
/*
|
||||
<example>1</example>
|
||||
*/
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
/// <example>Dogs</example>
|
||||
/*
|
||||
<example>Dogs</example>
|
||||
*/
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
@@ -58,7 +58,9 @@ namespace Org.OpenAPITools.Model
|
||||
/// Some text containing white spaces
|
||||
/// </summary>
|
||||
/// <value>Some text containing white spaces</value>
|
||||
/// <example>Some text</example>
|
||||
/*
|
||||
<example>Some text</example>
|
||||
*/
|
||||
[DataMember(Name = "text", EmitDefaultValue = false)]
|
||||
public string Text { get; set; }
|
||||
|
||||
|
||||
@@ -102,14 +102,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
/// <example>10</example>
|
||||
/*
|
||||
<example>10</example>
|
||||
*/
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
/// <example>doggie</example>
|
||||
/*
|
||||
<example>doggie</example>
|
||||
*/
|
||||
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
@@ -62,14 +62,18 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
/// <example>1</example>
|
||||
/*
|
||||
<example>1</example>
|
||||
*/
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
/// <example>Dogs</example>
|
||||
/*
|
||||
<example>Dogs</example>
|
||||
*/
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user