Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow yaml in script and automation #3862

Merged
merged 5 commits into from Oct 2, 2019
Merged

Conversation

bramkragten
Copy link
Member

Part of #3784

isvalid: true,
value:
props.value && !isEmpty(props.value)
? yaml.safeDump(props.value)
Copy link
Member

Choose a reason for hiding this comment

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

What if this raises ?

Copy link
Member

Choose a reason for hiding this comment

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

yaml.safeDump(() => {})

: undefined,
: undefined;
} catch (err) {
alert(`There is an error in the YAML: ${err}`);
Copy link
Member

Choose a reason for hiding this comment

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

Not an error in the YAML, could not convert it to YAML .

Copy link
Member Author

Choose a reason for hiding this comment

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

But we don't have any other way to save the config than YAML? So where could the error come from? YAML -> JSON -> YAML?

Copy link
Member

Choose a reason for hiding this comment

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

Good question, I don't know :D

Copy link
Member

Choose a reason for hiding this comment

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

It's fine.

@bramkragten bramkragten merged commit cd6fd6a into dev Oct 2, 2019
@delete-merged-branch delete-merged-branch bot deleted the yaml-script-automation branch October 2, 2019 19:21
@bramkragten bramkragten mentioned this pull request Oct 2, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants