This is an automated email from the ASF dual-hosted git repository. ash pushed a commit to branch fix-redocs-docs-build in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 0f04b9551f6885b271e7b3da163289da1bca5aec Author: Ash Berlin-Taylor <[email protected]> AuthorDate: Tue Apr 15 11:52:16 2025 +0100 Improvements to rendered API docs Somehow in #48760 we mistakenly changed `redoc` to `redocs` variable, which doesn't do anything :) This makes the redoc docs render and build again It was saying "Airflow API (0.1.0)" which isn't right, so that is fixed too --- airflow-core/docs/conf.py | 2 +- airflow-core/src/airflow/api_fastapi/app.py | 1 + airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 2 +- airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/airflow-core/docs/conf.py b/airflow-core/docs/conf.py index f1ce99843d9..1e470587b99 100644 --- a/airflow-core/docs/conf.py +++ b/airflow-core/docs/conf.py @@ -345,7 +345,7 @@ graphviz_output_format = "svg" main_openapi_path = Path(main_openapi_file).parent.joinpath("v1-generated.yaml") sam_openapi_path = Path(sam_openapi_file).parent.joinpath("v1-generated.yaml") -redocs = [ +redoc = [ { "name": "Simple auth manager token API", "page": "core-concepts/auth-manager/simple/sam-token-api-ref", diff --git a/airflow-core/src/airflow/api_fastapi/app.py b/airflow-core/src/airflow/api_fastapi/app.py index e7fc9d32b35..b11cf6824f5 100644 --- a/airflow-core/src/airflow/api_fastapi/app.py +++ b/airflow-core/src/airflow/api_fastapi/app.py @@ -77,6 +77,7 @@ def create_app(apps: str = "all") -> FastAPI: "depending on the need of the frontend. Users should not rely on those but use the public ones instead.", lifespan=lifespan, root_path=API_ROOT_PATH.removesuffix("/"), + version="2", ) dag_bag = get_dag_bag() diff --git a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml index 2e898e370ac..b3d429d0f3c 100644 --- a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml +++ b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v1-generated.yaml @@ -5,7 +5,7 @@ info: are stable and backward compatible. Endpoints located under ``/ui`` are dedicated to the UI and are subject to breaking change depending on the need of the frontend. Users should not rely on those but use the public ones instead. - version: 0.1.0 + version: '2' paths: /ui/auth/menus: get: diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts index dddf78f069e..2b80bacec1c 100644 --- a/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts +++ b/airflow-core/src/airflow/ui/openapi-gen/requests/core/OpenAPI.ts @@ -49,7 +49,7 @@ export const OpenAPI: OpenAPIConfig = { PASSWORD: undefined, TOKEN: undefined, USERNAME: undefined, - VERSION: "0.1.0", + VERSION: "2", WITH_CREDENTIALS: false, interceptors: { request: new Interceptors(),
