Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 6.6.1 and 6.6.2 the backslash character is doubled in the example #2967

Open
pairbit opened this issue Jul 1, 2024 · 0 comments
Open
Labels
bug help-wanted A change up for grabs for contributions from the community

Comments

@pairbit
Copy link

pairbit commented Jul 1, 2024

Describe the bug

Commentary on the models.
The comment contains line breaks (\r\n)

/// <example><![CDATA[<Doc>Multi\r\nline text</Doc>]]></example>
public string Data { get; set; }

The swagger displays already doubled backslash symbols

[
  {
    "data": "<Doc>Multi\\r\\nline text</Doc>"
  }
]

Expected behavior

In a swagger, backslash characters should not be doubled

[
  {
    "data": "<Doc>Multi\r\nline text</Doc>"
  }
]

Actual behavior

No response

Steps to reproduce

No response

Exception(s) (if any)

No response

Swashbuckle.AspNetCore version

6.6.1 and 6.6.2

.NET Version

net8.0

Anything else?

No response

@pairbit pairbit added the bug label Jul 1, 2024
@martincostello martincostello added the help-wanted A change up for grabs for contributions from the community label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help-wanted A change up for grabs for contributions from the community
Projects
None yet
Development

No branches or pull requests

2 participants