You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/12/14 10:25:49 UTC

[GitHub] [airflow] gschuurman commented on a diff in pull request #28354: Allow Users to disable SwaggerUI via configuration

gschuurman commented on code in PR #28354:
URL: https://github.com/apache/airflow/pull/28354#discussion_r1048279809


##########
airflow/www/extensions/init_views.py:
##########
@@ -208,7 +208,11 @@ def _handle_method_not_allowed(ex):
             return views.method_not_allowed(ex)
 
     spec_dir = path.join(ROOT_APP_DIR, "api_connexion", "openapi")
-    connexion_app = App(__name__, specification_dir=spec_dir, skip_error_handlers=True)
+    if not conf.getboolean("webserver", "enable_swagger_ui"):

Review Comment:
   This should be fixed in the latest commit. Thanks for noticing



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org