pierrejeambrun opened a new pull request, #73328:
URL: https://github.com/apache/airflow/pull/73328
The asset materialize endpoint (`POST /assets/{asset_id}/materialize`)
accepted a request with no body and materialized with defaults. Every other
mutating endpoint — including the sibling trigger-run route whose body model
this one extends (`TriggerDAGRunPostBody`) — requires an explicit JSON request
body.
This makes the contract consistent: a request with no body now returns `422`
instead of proceeding with defaults. All body fields remain optional, so an
empty object `{}` is a valid body. The in-tree UI already sends a body; the
`airflowctl` client is updated to send `{}`.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 4.8)
Generated-by: Claude Code (Opus 4.8) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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]