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

Upgrade Swagger UI to 3.x version #1207

Open
cervengoc opened this issue Jan 12, 2018 · 1 comment
Open

Upgrade Swagger UI to 3.x version #1207

cervengoc opened this issue Jan 12, 2018 · 1 comment

Comments

@cervengoc
Copy link

We'd need to support custom string-based examples for Swagger UI. The UI has a known bug when providing it with string examples, see swagger-api/swagger-ui#2369 for a reference. I'm not sure in which version it got fixed, but according to the last comment it's not an issue in 3.x.

Our code would like to do something like this in a custom IOperationFilter.

response.examples = new Dictionary<string, object>()
{
    ["application/json"] = "{ \"a\": 1 }",
    ["application/xml"] = "<root><a>1</a></root>",
};

Is there any way to upgrade the integrated swagger-ui to 3.x?

Thanks in advance for your reply.

@Cloudmersive
Copy link

Can you guys please upgrade to Swagger 3.x? Nobody uses ASP.NET Core!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants