-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(code): Use YAML 1.1 for serializing
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: #971
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export const camelRouteYaml_1_1_original = ` | ||
- route: | ||
id: route-3376 | ||
from: | ||
id: from-3505 | ||
uri: rest:post:/newCustomer | ||
parameters: | ||
host: localhost | ||
steps: [] | ||
`; | ||
|
||
export const camelRouteYaml_1_1_updated = `- route: | ||
id: route-3376 | ||
from: | ||
id: from-3505 | ||
uri: rest:post:/newCustomer | ||
parameters: | ||
bindingMode: "off" | ||
host: localhost | ||
steps: [] | ||
`; |