Skip to content

Commit

Permalink
Hide the REST API validator tag only or the live website
Browse files Browse the repository at this point in the history
  • Loading branch information
ens-lgil committed May 3, 2024
1 parent ddc8d6a commit 9eed6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rest_api/templates/rest_api/rest_doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
layout: "StandaloneLayout",
useUnsafeMarkdown: true,
defaultModelsExpandDepth: 0, // Collapse the Schemas section by default (set to 0). Hide the Schemas section if it's set to -1.
validatorUrl: 'none' // Hide the validator badge at the bottom of the page.
{% 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 9eed6f8

Please sign in to comment.