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

Examples Stop Working with Swashbuckle v5.6.0 #8

Closed
ntregillus opened this issue Aug 2, 2017 · 2 comments
Closed

Examples Stop Working with Swashbuckle v5.6.0 #8

ntregillus opened this issue Aug 2, 2017 · 2 comments

Comments

@ntregillus
Copy link

Love this nugget package! been working great until I upgrated to v5.6.0 and now the response examples are not loading correctly. My default serialization is getting overrwritten (defaulting back to camelCase) and all request payloads are getting wrapped in an outer object with a single "application/json" property.

image

@mattfrear
Copy link
Owner

Released https://www.nuget.org/packages/Swashbuckle.Examples/3.3.1

mattfrear added a commit that referenced this issue Sep 15, 2017
…s the correct behavior as per the Swagger spec.
@mattfrear
Copy link
Owner

I have undone this change and released a new version, as wrapping the response in application/json mime type is the correct behaviour as per the Swagger spec.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#exampleObject

I suspect it may be a bug in Swagger-UI that is causing it to be displayed.

Released: https://www.nuget.org/packages/Swashbuckle.Examples/3.3.3

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