]> source.dussan.org Git - gitea.git/commitdiff
docs: swagger show models by default (#14880)
authorNorwin <noerw@users.noreply.github.com>
Sun, 7 Mar 2021 21:19:14 +0000 (21:19 +0000)
committerGitHub <noreply@github.com>
Sun, 7 Mar 2021 21:19:14 +0000 (22:19 +0100)
web_src/js/standalone/swagger.js

index 55cc1ab78cc021cbab1ff14b44a6b5e43f540054..5d8b7192b2305def36b3c441b45e3d17bf325e13 100644 (file)
@@ -19,6 +19,7 @@ window.addEventListener('load', async () => {
     dom_id: '#swagger-ui',
     deepLinking: true,
     docExpansion: 'none',
+    defaultModelRendering: 'model', // don't show examples by default, because they may be incomplete
     presets: [
       SwaggerUI.presets.apis
     ],