mik-laj commented on a change in pull request #10333: URL: https://github.com/apache/airflow/pull/10333#discussion_r475155102
########## File path: airflow/api_connexion/exceptions.py ########## @@ -16,45 +16,141 @@ # under the License. from typing import Dict, Optional -from connexion import ProblemException +import werkzeug +from connexion import FlaskApi, ProblemException, problem + +from airflow import version + +doc_link = f'https://airflow.apache.org/docs/{version.version}/stable-rest-api/redoc.html' +if 'dev' in version.version: + doc_link = "https://airflow.readthedocs.io/en/latest/stable-rest-api/redoc.html" Review comment: ```suggestion doc_link = "https://airflow.readthedocs.io/en/latest/stable-rest-api-ref.html" ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
