diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-03-07 21:19:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 22:19:14 +0100 |
commit | 5eafd117a64fe0fcba498463fc51fba97fe3f7d4 (patch) | |
tree | 1087cd25898e566a922b7872ea3cdb1cfe0ebb6f /web_src/js | |
parent | 40aca733472128e691621419c64aaf9e6f20874d (diff) | |
download | gitea-5eafd117a64fe0fcba498463fc51fba97fe3f7d4.tar.gz gitea-5eafd117a64fe0fcba498463fc51fba97fe3f7d4.zip |
docs: swagger show models by default (#14880)
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/standalone/swagger.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/standalone/swagger.js b/web_src/js/standalone/swagger.js index 55cc1ab78c..5d8b7192b2 100644 --- a/web_src/js/standalone/swagger.js +++ b/web_src/js/standalone/swagger.js @@ -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 ], |