This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 54c4d590ca fix clear dag run openapi spec responses by adding
additional return type (#29600)
54c4d590ca is described below
commit 54c4d590caa9399f9fb331811531e0ea8d56aa41
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)
---
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 f64cd7c8c8..505d2b6439 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -890,7 +890,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 7228d5fdf9..e206bc1ba4 100644
--- a/airflow/www/static/js/types/api-generated.ts
+++ b/airflow/www/static/js/types/api-generated.ts
@@ -3002,7 +3002,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"];