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 09:54:07 UTC

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

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


##########
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:
   If someone updates the code but doesn't update the conf file, this line will raise an error.



-- 
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