1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-27 14:26:08 +02:00

docs: swagger show models by default (#14880)

This commit is contained in:
Norwin 2021-03-07 21:19:14 +00:00 committed by GitHub
parent 40aca73347
commit 5eafd117a6
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View 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
],