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(code): Use YAML 1.1 for serializing #984

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Mar 30, 2024

Context

Currently, Kaoto serializes to YAML using YAML 1.2.

This creates an edge for the Rest component since one of its parameters (bindingMode) accepts an off value which ultimately gets serialized as it is, causing it to be interpreted as false.

This commit changes the YAML serializing schema to 1.1 so off gets serialized as "off" avoiding this issue.

fix: #971

Currently, Kaoto serialize to YAML using YAML 1.2.

This creates an edge for the Rest component since one of its parameters
(`bindingMode`) accepts an `off` value which ultimately gets serialized as it is,
causing to be interpreted as `false`.

This commit change the YAML serializing schema to 1.1 so `off` gets serialized as `"off"`
avoiding this issue.

fix: KaotoIO#971
@lordrip lordrip requested a review from igarashitm March 31, 2024 21:21
@lhein lhein merged commit 272e659 into KaotoIO:main Apr 2, 2024
9 checks passed
@lordrip lordrip deleted the fix/use-yaml-1.1 branch April 15, 2024 17:58
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.

Quotes missing on parameter values
3 participants