swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.29k stars 8.91k forks source link

OpenAPI Specification (Version 3.0.3) doesn't show schema when user clicks on "Try It Out" button. #7790

Open mohankrishna-lab opened 2 years ago

mohankrishna-lab commented 2 years ago

Hi,

In OpenAPI Specification (Version 2.0), the model will be visible even when the user clicks on the "Try it out" button but in (Version 3.0.3) the schema doesn't show when the user clicks on the "Try it out button".

Screenshots:

(Version 2.0) openapi2_model_screenshot

(Version 3.0)

image

Description:

-> User can see schema before the "Try it out" button in both versions but that changes when the user clicks on the "Try it out" button. -> Is this behavior expected? -> Is there a chance in the future, in open API 3.0 even when the users click on the "Try it out" button schema will be visible for users?

Links: This behavior is in default pet store examples also.

(Version 2.0) https://petstore.swagger.io/#/pet/addPet

(Version 3.0) https://petstore3.swagger.io/

Thank you.

Michi-2142 commented 9 months ago

Any updates on this issue? Still persists in https://editor-next.swagger.io/.