ColtenOuO opened a new pull request, #71011:
URL: https://github.com/apache/airflow/pull/71011
Follow-up to #67570, #67571 and #70992, which each fixed one instance of the
same
drift: a handler raises an HTTP status that
`create_openapi_http_exception_doc(...)`
never declares, so the generated spec — and every client built from it — has
no model
for a response the API really returns.
| Endpoint | Undeclared |
| --- | --- |
| `POST /backfills/dry_run` | `400` |
| `DELETE /dags/{dag_id}/dagRuns/{dag_run_id}` | `409` |
| `GET /dags/{dag_id}/dagRuns` | `400` |
| `DELETE /dags/{dag_id}` | `409` |
| `PATCH /hitlDetails/{dag_id}/{dag_run_id}/{task_id}` | `400` |
| `POST /dags/{dag_id}/clearTaskInstances` | `400` |
| `POST /variables` | `404` |
| `GET /ui/dags/{dag_id}/latest_run` | `400` |
| `GET /ui/dependencies` | `400` |
Every one is reachable.
`ui/dependencies.py` also had one bare `raise HTTPException(404, ...)`; it
now uses
`status.HTTP_404_NOT_FOUND`, the same tidy-up as #67571.
`xcom.py` is deliberately left out — it is fixed in #70992.
## Behaviour
Unchanged. Only `responses=` declarations, so the regenerated spec and UI
client are
additive (7 additions to the public spec, 2 to `_private_ui.yaml`, no
deletions).
No new tests: the statuses were already produced and are already covered.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 5)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]