unchase / Unchase.Swashbuckle.AspNetCore.Extensions

:hammer: A library contains a bunch of extensions (filters) for Swashbuckle.AspNetCore.
https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions
Apache License 2.0
115 stars 16 forks source link

Line Break is OS dependent (\r\n vs \n) #21

Closed Lazzaretti closed 1 year ago

Lazzaretti commented 2 years ago

The line break in the description is OS specific with Envirinment.NewLine, which leads to different results depending on the OS.

Windows:

"description": "The description of the enum.\r\n\r\n0 = None"

Linux/Mac:

"description": "The description of the enum.\n\n0 = None"

Suggestion: Always use the same newline ending for all OS, e.g., always \n.