Skip to content

Commit

Permalink
Merge pull request #363 from ens-lgil/feature/rest_api_hide_validator…
Browse files Browse the repository at this point in the history
…_badge

Disable the REST API Swagger UI validator and hide the validator badg…
  • Loading branch information
fyvon committed May 7, 2024
2 parents b8201b1 + 9eed6f8 commit d42d189
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rest_api/templates/rest_api/rest_doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
plugins: [ SwaggerUIBundle.plugins.DownloadUrl ],
layout: "StandaloneLayout",
useUnsafeMarkdown: true,
defaultModelsExpandDepth: 0
defaultModelsExpandDepth: 0, // Collapse the Schemas section by default (set to 0). Hide the Schemas section if it's set to -1.
{% if is_pgs_live_site == False %}
validatorUrl: 'none' // Hide the validator badge at the bottom of the page.
{% endif %}
})
// End Swagger UI call region
window.ui = ui
Expand Down

0 comments on commit d42d189

Please sign in to comment.