Skip to content

JSON Linter in Variables #27157

@selvakumar-arumugapandian

Description

Description

JSON Linter in Variables

When user adds an object (JSON format) as variable, there should be option enabled to validate the object or validate automatically.

For example:

I have a variable named "my_var_group", with the following value

{
"dag_prefix": "my-prefix",
"dag_retry": 5
}

Imagine, I am using this variable "my_var_group" in 500+ DAGs and any mistake in the JSON fails to load all the 500+ DAGs.

So, A feature which does automatic linting of JSON object (By throwing error during variable creation/update) shall ensure that "error" prone JSON is not added.

Use case/motivation

Real-time experience in an environment where we are running more than 1000+ DAGs.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions