You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a OpenAPI spec, add a simple property like this
[...]
testProperty:
description: For test only
type: string
example: Test-Test-Test
[...]
Start the latest openapi generator 2.6.0 (6.6.0) and let create the C# code. Take a look into the created class, you will find this
[...]
/// <sumary>
/// For test only
/// </sumary>
/// <value>For test only</value>
/// <example>"Test-Test-Test"</example>
[DataMember(Name="testProperty", EmitDefaultValue=false)]
public string TestProperty { get; set; }
[...]
Start your application and take a look into your swagger doc. The example value is ignored! When you remove the """ from the example XML comment, than the example value is available.
The example value should shown, when the text is in " parts.
The text was updated successfully, but these errors were encountered:
Create a OpenAPI spec, add a simple property like this
Start the latest openapi generator 2.6.0 (6.6.0) and let create the C# code. Take a look into the created class, you will find this
Start your application and take a look into your swagger doc. The example value is ignored! When you remove the """ from the example XML comment, than the example value is available.
The example value should shown, when the text is in " parts.
The text was updated successfully, but these errors were encountered: