Repository navigation
Replaced manual response descriptions with create_openapi_http_exception_doc - #62624
Conversation
|
cc @jason810496, Can I get your review when you get a chance? Thanks in advance! |
jason810496
left a comment
There was a problem hiding this comment.
I think it's possible to keep the description while standardize the error for FastAPI route.
6114443 to
6de3996
Compare
jason810496
left a comment
There was a problem hiding this comment.
Thanks, LGTM after resolving the conflict.
Additionally, could you share the screenshot of the OpenAPI page of Execution API to make sure the existing "description" fields remain unchanged? Thanks.
bf48755 to
2bdb150
Compare
2bdb150 to
bbab062
Compare
pierrejeambrun
left a comment
There was a problem hiding this comment.
Nice, this is a clean follow-up to the helper extension @jason810496 suggested. Two things to flag before merge though: a few endpoint descriptions seem to have been silently rewritten rather than preserved (which was the whole point per the earlier feedback), and the trailing-period style is inconsistent. Details inline.
Drafted-by: Claude Code (Opus 4.7); reviewed by @pierrejeambrun before posting
bbab062 to
82840a0
Compare
|
@henry3260 A few things need addressing before review — see our Pull Request quality criteria.
No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. Drafted-by: Claude Code (Opus 4.7); reviewed by @potiuk before posting |
2066e1c to
412a1de
Compare
…ion_doc for Task Instance routes. This ensures consistent OpenAPI documentation across the Execution API and removes redundant hardcoded strings.
412a1de to
b7ec55d
Compare
|
CI is green now! |


Why
Currently, some endpoints in the
execution_apiforTaskInstances(such as run and rtif) define their HTTP error responses (404, 409, 422) manually using hardcoded dictionaries.What
Refactored responses definitions: Replaced manual dictionaries in the
@ti_id_router.patch(for run endpoint) and@router.put(for rtif endpoint) with thecreate_openapi_http_exception_dochelper.closes: #60467
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.