swagger-api / swagger-api/swagger-ui
Special Characters: \" and \n in the Swagger UI Response body
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Could you please explain why I see the special characters: " and \n and how to get rid of them in the Swagger UI Response body. I tried both NSwag.AspNetCore(13.18.0) and Swashbucle.AspNetCore(6.4.0) with the .NET Core 3.1 API project on Visual Studio 2019. Please see the attached files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the response shown in the attached SwaggerUI and VS2019C# files with the reported .NET Core 3.1 API, NSwag.AspNetCore 13.18.0, and Swashbuckle.AspNetCore 6.4.0. Compare the API's encoded response with Swagger UI's rendering, then document whether the characters originate in the server response or the UI and how they can be removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100