You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by xd...@apache.org on 2021/01/08 06:00:50 UTC

[airflow] branch master updated: Add NotFound response for DELETE methods in OpenAPI YAML (#13550)

This is an automated email from the ASF dual-hosted git repository.

xddeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new ad64dfa  Add NotFound response for DELETE methods in OpenAPI YAML (#13550)
ad64dfa is described below

commit ad64dfa0c7cc34e56500390f9c9a317695ea389b
Author: Xiaodong DENG <xd...@apache.org>
AuthorDate: Fri Jan 8 07:00:39 2021 +0100

    Add NotFound response for DELETE methods in OpenAPI YAML (#13550)
    
    NotFound (404) is a valid possible response
    for 'Delete a Connection/Dag Run/Variable',
    
    but they were missed in the OpenAPI Doc YAML.
---
 airflow/api_connexion/openapi/v1.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml
index 2e90b21..69ac171 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -356,6 +356,8 @@ paths:
           $ref: '#/components/responses/Unauthenticated'
         '403':
           $ref: '#/components/responses/PermissionDenied'
+        '404':
+          $ref: '#/components/responses/NotFound'
 
   /dags:
     get:
@@ -628,6 +630,8 @@ paths:
           $ref: '#/components/responses/Unauthenticated'
         '403':
           $ref: '#/components/responses/PermissionDenied'
+        '404':
+          $ref: '#/components/responses/NotFound'
 
   /eventLogs:
     get:
@@ -1060,6 +1064,8 @@ paths:
           $ref: '#/components/responses/Unauthenticated'
         '403':
           $ref: '#/components/responses/PermissionDenied'
+        '404':
+          $ref: '#/components/responses/NotFound'
 
   /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries:
     parameters: