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

Fix examples #696

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexandermyasnikov
Copy link

In v2.22.1, I used the display of examples in the swagger.
In v2.23.0 this was broken by adding the line

op.RequestBody.Content[contentType] = &MediaType{Schema: s}

v2.22.1...v2.23.0#diff-34398007f1f21b0bc55b2fe31480add48b936399f37e1ae49662d9e4dbf33a98R598

Now with the upgrade to v2.23.0+ all my examples are being overwritten and not displayed in swagger.

Made a small fix to make it work for me as before.

Or is there another more correct way to display examples?

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

Successfully merging this pull request may close these issues.

1 participant