This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-5-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 195d47aa58fd0916f4b26aeeb1358b88ff543022 Author: Alexander Liotta <[email protected]> AuthorDate: Mon Feb 20 15:53:17 2023 -0500 fix clear dag run openapi spec responses by adding additional return type (#29600) (cherry picked from commit 54c4d590caa9399f9fb331811531e0ea8d56aa41) --- airflow/api_connexion/openapi/v1.yaml | 4 +++- airflow/www/static/js/types/api-generated.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml index 0ee095fe4f..a32ac04986 100644 --- a/airflow/api_connexion/openapi/v1.yaml +++ b/airflow/api_connexion/openapi/v1.yaml @@ -887,7 +887,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DAGRun' + anyOf: + - $ref: '#/components/schemas/DAGRun' + - $ref: '#/components/schemas/TaskInstanceCollection' '400': $ref: '#/components/responses/BadRequest' '401': diff --git a/airflow/www/static/js/types/api-generated.ts b/airflow/www/static/js/types/api-generated.ts index 52bb98e769..72fc939a38 100644 --- a/airflow/www/static/js/types/api-generated.ts +++ b/airflow/www/static/js/types/api-generated.ts @@ -2942,7 +2942,8 @@ export interface operations { /** Success. */ 200: { content: { - "application/json": components["schemas"]["DAGRun"]; + "application/json": Partial<components["schemas"]["DAGRun"]> & + Partial<components["schemas"]["TaskInstanceCollection"]>; }; }; 400: components["responses"]["BadRequest"];
