rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.65k stars 277 forks source link

Schema tab should be shown before examples tab when schema is default #987

Open marshmn opened 9 months ago

marshmn commented 9 months ago

It is possible to control which tab is shown by default within a request body/response, by setting default-schema-tab="schema" - however, when doing so, the tabs still have the 'Examples' tab shown to the left of the 'Schema' tab. This feels odd (to me) when you come to the page and the second tab is selected by default.

It would be nice if the tabs were listed in the order 'Schema' then 'Examples' when schema is set as the default. Or perhaps provide an option to control the order separately?

Screenshot from 2023-12-27 12-51-21