Skip to content

Commit

Permalink
Add NotFound response for DELETE methods in OpenAPI YAML (#13550)
Browse files Browse the repository at this point in the history
NotFound (404) is a valid possible response
for 'Delete a Connection/Dag Run/Variable',

but they were missed in the OpenAPI Doc YAML.
  • Loading branch information
XD-DENG authored Jan 8, 2021
1 parent 992ac34 commit ad64dfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ paths:
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/PermissionDenied'
'404':
$ref: '#/components/responses/NotFound'

/dags:
get:
Expand Down Expand Up @@ -628,6 +630,8 @@ paths:
$ref: '#/components/responses/Unauthenticated'
'403':
$ref: '#/components/responses/PermissionDenied'
'404':
$ref: '#/components/responses/NotFound'

/eventLogs:
get:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ad64dfa

Please sign in to comment.