Skip to content

Commit

Permalink
Fix small bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chebotov Nikolay committed Feb 21, 2020
1 parent 2b7ded0 commit 6a4fa35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ internal static string AddEnumValuesDescription(this OpenApiSchema schema, bool
{
var value = ((OpenApiInteger)schema.Enum[i]).Value;
var name = ((OpenApiString)((OpenApiArray)schema.Extensions["x-enumNames"])[i]).Value;
sb.AppendLine($"{Environment.NewLine}{Environment.NewLine}{value} = {name}");
sb.Append($"{Environment.NewLine}{Environment.NewLine}{value} = {name}");

// add description from DescriptionAttribute
if (includeDescriptionFromAttribute)
Expand Down

0 comments on commit 6a4fa35

Please sign in to comment.