Skip to content

Conversation

@bbovenzi
Copy link
Contributor

@bbovenzi bbovenzi commented May 6, 2025

We don't know if a Variable value is going to be json, but if it starts with { or [ we can at least try to check and show the user a warning they can choose to listen to or not.

Also, made sure the value was actually a required field.

Closes #27157

See the difference between an error and a warning:
Screenshot 2025-05-06 at 3 30 50 PM


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@bbovenzi bbovenzi added this to the Airflow 3.0.2 milestone May 6, 2025
@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label May 6, 2025
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@bbovenzi bbovenzi merged commit 8934641 into apache:main May 6, 2025
43 checks passed
@bbovenzi bbovenzi deleted the variable-value-json-check branch May 6, 2025 20:22
ayush3singh pushed a commit to ayush3singh/airflow that referenced this pull request May 8, 2025
kaxil pushed a commit that referenced this pull request Jun 3, 2025
kaxil pushed a commit that referenced this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON Linter in Variables

3 participants