This is for Swagger v2
The steps to reproduce are:
And then, things get funky:
It's quite annoying since Model is quite useful to see what each parameter means and if it's mandatory.
It is indeed quite annoying, it seems to affect the petstore.swagger.io too, meaning it isn't on our side
It seems to be designed this way: https://github.com/swagger-api/swagger-ui/blob/master/src/core/components/model-example.jsx#L51-L63, it is the same behavior with the latest version v3.17.3.
I'll submit a PR as a proposal, and I'll publish an url to preview.
Here is the url to preview the changes: http://bestmike007.com/swagger-ui/issue-4681
Most helpful comment
Here is the url to preview the changes: http://bestmike007.com/swagger-ui/issue-4681