Skip to content

[airflow-ctl/v0-1-test] Fix airflowctl JSON parsing for Dag run conf (#68985)#69837

Merged
bugraoz93 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-a1cec52-airflow-ctl/v0-1-test
Jul 13, 2026
Merged

[airflow-ctl/v0-1-test] Fix airflowctl JSON parsing for Dag run conf (#68985)#69837
bugraoz93 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-a1cec52-airflow-ctl/v0-1-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Fix airflowctl JSON parsing for Dag run conf

airflowctl dags trigger --conf rejected JSON object strings because the
generated parser validated them with raw dict, which cannot consume a JSON
string. Parse JSON object CLI values into dictionaries before validation so
conf values such as {"my-key": "my-value"} are accepted.

closes: #67989

  • Expand json_dict_type test coverage for airflowctl conf parsing

Cover dict input early return, invalid JSON, and non-object JSON so all
branches of the conf parser are exercised.


(cherry picked from commit a1cec52)

Co-authored-by: Atakan Yenel atakanyenel@gmail.com
Co-authored-by: Atakan Yenel atakanyenel@microsoft.com

…68985)

* Fix airflowctl JSON parsing for Dag run conf

airflowctl dags trigger --conf rejected JSON object strings because the
generated parser validated them with raw dict, which cannot consume a JSON
string. Parse JSON object CLI values into dictionaries before validation so
conf values such as {"my-key": "my-value"} are accepted.

closes: #67989

* Expand json_dict_type test coverage for airflowctl conf parsing

Cover dict input early return, invalid JSON, and non-object JSON so all
branches of the conf parser are exercised.

---------
(cherry picked from commit a1cec52)

Co-authored-by: Atakan Yenel <atakanyenel@gmail.com>
Co-authored-by: Atakan Yenel <atakanyenel@microsoft.com>
@bugraoz93 bugraoz93 marked this pull request as ready for review July 13, 2026 20:48
@bugraoz93 bugraoz93 merged commit 9a3ed00 into airflow-ctl/v0-1-test Jul 13, 2026
2 checks passed
@bugraoz93 bugraoz93 deleted the backport-a1cec52-airflow-ctl/v0-1-test branch July 13, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants