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

fix(CanvasForm): Avoid serializing empty strings #1028

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Apr 23, 2024

Context

Currently, when a string field is touched and later on cleaned, the resulting YAML looks like the following:

property: ''

This represents an issue since many properties can't be left blank.

This commit avoids serializing empty '' strings by replacing them with undefined instead.

fix: #1022

Currently, when a string field is touched and later on clean, the resulting YAML looks like the following:
```
property: ''
```

And this represents an issue since many properties can't be left blank.

This commit avoids serializing empty `''` strings by replace them with
`undefined` instead.

fix: KaotoIO#1022
@lordrip lordrip merged commit 3c7591e into KaotoIO:main Apr 23, 2024
6 checks passed
@lordrip lordrip deleted the fix/avoid-serializing-empty-string branch April 23, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid serializing empty strings
2 participants