Ciao!
I am here because I am looking for the same thing. I want to generate client code, in order to do that I need access to openapi.json/yaml or similar.
I didn’t find what I am looking for but the workaround is to inspect the documentation HTTP response:
<body>
<div id="swagger-ui"></div>
<script class="custom-swagger-ui">
window.onload = function() {
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
spec: {"openapi":"3.0.0","info":{"vers ......
dom_id: '#swagger-ui',
docExpansion: "none",
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset,
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl,
],
layout: "StandaloneLayout",
});
window.ui = ui;
}
spec contains the information I am looking for. It will be nice to have access to this file in another way but I didn’t figure it out yet