Skip to content

Commit

Permalink
Replace "<br>" tag to "{Envirinment.NewLine}{Envirinment.NewLine}" fo…
Browse files Browse the repository at this point in the history
…r enum descriptions.
  • Loading branch information
Chebotov Nikolay committed Feb 21, 2020
1 parent 2fd559e commit 2b7ded0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

These are the changes to each version that has been released on the [nuget](https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions/).

## v2.1.6 `(2020-02-21)`

- [x] Fix bug: replace `<br>` tag to `{Envirinment.NewLine}{Envirinment.NewLine}` for enum descriptions

## v2.1.5 `(2020-02-21)`

- [x] Fix bug: fix openApi response content schema in `ChangeResponseByHttpStatusCodeDocumentFilter`
Expand Down
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.Append($"<br>{value} = {name}");
sb.AppendLine($"{Environment.NewLine}{Environment.NewLine}{value} = {name}");

// add description from DescriptionAttribute
if (includeDescriptionFromAttribute)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<NeutralLanguage></NeutralLanguage>
<LangVersion>7.3</LangVersion>
<PackageIconUrl>https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/blob/master/assets/icon.png?raw=true</PackageIconUrl>
<Version>2.1.5</Version>
<AssemblyVersion>2.1.5.0</AssemblyVersion>
<FileVersion>2.1.5.0</FileVersion>
<Version>2.1.6</Version>
<AssemblyVersion>2.1.6.0</AssemblyVersion>
<FileVersion>2.1.6.0</FileVersion>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<DocumentationFile>Unchase.Swashbuckle.AspNetCore.Extensions.xml</DocumentationFile>
</PropertyGroup>
Expand Down

0 comments on commit 2b7ded0

Please sign in to comment.